Back to Devexpress

XRTable.AccessibleRole Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrtable-633b33f6.md

latest3.3 KB
Original Source

XRTable.AccessibleRole Property

Specifies the role of XRTable in the exported PDF document. This value is used by assistive technologies.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(true)]
public override XRAccessibleRole AccessibleRole { get; set; }
vb
<Browsable(True)>
Public Overrides Property AccessibleRole As XRAccessibleRole

Property Value

TypeDescription
XRAccessibleRole

The value that defines XRTable role.

|

Available values:

Show 13 items

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

|

Remarks

You can specify how XRTable should be treated by screen readers in the exported PDF document. For this, set the control’s AccessibleRole property to Table before you export a report.

Set the PdfExportOptions.PdfUACompatibility property to PdfUA1 to conform the exported PDF document to PDF/UA specification. Then, export the report to PDF format.

The image below shows the result. XRTable.AccessibleRole is set to Table, and the screen reader treats XRTable as a table in the exported document:

You can also use XRLabel.AccessibleRole and XRTableRow.AccessibleRole to specify header cells and rows in the table.

See Also

XRTable Class

XRTable Members

DevExpress.XtraReports.UI Namespace