Skip to main content
All docs
V25.2
  • 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.v25.2.dll

    NuGet Package: DevExpress.Reporting.Core

    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, or XRBarCode.

    Figure

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

    Paragraph

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

    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.

    Element(s) Default behavior when AccessibleRole = Default Role you can specify How to set the role (API)
    XRLabel No semantic role; treated as a Div. Heading XRLabel.AccessibleRole
    XRTable No semantic role; treated as a Div. Table XRTable.AccessibleRole
    XRTableRow No semantic role; treated as a Div. Table Header Row XRTableRow.AccessibleRole
    XRTableCell Treated as a paragraph (P). Header Cell XRLabel.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) XRPictureBox.AccessibleRole, XRBarCode.AccessibleRole, XRShape.AccessibleRole, XRZipCode.AccessibleRole

    The AccessibleDescription property is not in effect for artifacts.

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

    Specifies role example

    See Also