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

    NuGet Package: DevExpress.Reporting.Core

    Declaration

    [Browsable(true)]
    public override XRAccessibleRole AccessibleRole { get; set; }

    Property Value

    Type Description
    XRAccessibleRole

    The value that defines XRTable role.

    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 AccessibleRole in Property Grid

    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:

    Exported report in the screen reader

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

    See Also