Skip to main content
All docs
V26.1
  • XRAccessibleRole Enum

    Lists values that define UI element roles in the exported PDF document. These roles are used by assistive technologies.

    Namespace: DevExpress.XtraReports.UI

    Assembly: DevExpress.XtraReports.v26.1.dll

    Declaration

    public enum XRAccessibleRole

    Members

    Name Description
    Default

    Applies default semantic meaning based on element type.

    Heading1

    Applies “level one heading” meaning to an XRLabel.

    Heading2

    Applies “level two heading” meaning to an XRLabel.

    Heading3

    Applies “level three heading” meaning to an XRLabel.

    Heading4

    Applies “level four heading” meaning to an XRLabel.

    Heading5

    Applies “level five heading” meaning to an XRLabel.

    Heading6

    Applies “level six heading” meaning to an XRLabel.

    Table

    Applies “table” meaning to an XRTable.

    TableHeaderRow

    Applies “header row” meaning to an XRTableRow.

    TableHeaderCell

    Applies “header cell” meaning to an XRTableCell.

    Decorative

    Applies “decorative” semantic meaning to an XRShape, XRPictureBox, XRZipCode, XRPanel or XRBarCode.

    Figure

    Applies “figure” semantic meaning to an image watermark (XRWatermark).

    Paragraph

    Applies “paragraph” semantic meaning to a text watermark (XRWatermark) or XRPageInfo.

    Remarks

    Use this table to map report controls to accessibility structure roles in exported PDF files.

    The table describes the following:

    • How each control behaves when the AccessibleRole property is set to Default.
    • Roles you can assign to ensure that screen readers correctly identify the element’s purpose in the exported PDF document.
    • Properties that specify these roles.

    Tip

    Decorative role means an element is treated as an artifact (outside the tag tree). Use this role only for non-informative visual elements. The AccessibleDescription property is not in effect for artifacts.

    Element(s) Default behavior when AccessibleRole = Default Role you can specify How to set the role (API)
    XRLabel Treated as a paragraph (P). Heading XRControl.AccessibleRole
    XRTable No semantic role; treated as a Div. Table XRControl.AccessibleRole
    XRTableRow No semantic role; treated as a Div. Table Header Row XRControl.AccessibleRole
    XRTableCell Treated as a paragraph (P). Header Cell XRControl.AccessibleRole
    XRWatermark (an image watermark) Treated as an artifact; excluded from the PDF logical structure. Figure XRWatermark.ImageAccessibleRole
    XRWatermark (a text watermark) Treated as an artifact; excluded from the PDF logical structure. Paragraph XRWatermark.TextAccessibleRole
    XRPictureBox, XRShape, XRBarCode, XRZipCode Treated as a Figure. Decorative (Artifact) XRControl.AccessibleRole
    XRPageInfo Treated as an artifact; excluded from the PDF logical structure. Paragraph XRControl.AccessibleRole
    XRPanel No semantic role; treated as a Div. Decorative (Artifact) XRControl.AccessibleRole

    The following image illustrates the difference between default and specified roles:

    Specifies role example

    See Also