Back to Devexpress

XRAccessibleRole Enum

xtrareports-devexpress-dot-xtrareports-dot-ui-16d6a552.md

latest5.3 KB
Original Source

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

csharp
public enum XRAccessibleRole
vb
Public Enum XRAccessibleRole

Members

NameDescription
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).

|

The following properties accept/return XRAccessibleRole values:

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 = DefaultRole you can specifyHow to set the role (API)
XRLabelNo semantic role; treated as a Div.HeadingXRLabel.AccessibleRole
XRTableNo semantic role; treated as a Div.TableXRTable.AccessibleRole
XRTableRowNo semantic role; treated as a Div.Table Header RowXRTableRow.AccessibleRole
XRTableCellTreated as a paragraph (P).Header CellXRLabel.AccessibleRole
XRWatermark (an image watermark)Treated as an artifact; excluded from the PDF logical structure.FigureXRWatermark.ImageAccessibleRole
XRWatermark (a text watermark)Treated as an artifact; excluded from the PDF logical structure.ParagraphXRWatermark.TextAccessibleRole
XRPictureBox, XRShape, XRBarCode, XRZipCodeTreated 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:

See Also

DevExpress.XtraReports.UI Namespace