Skip to main content
All docs
V25.2
  • XRShape.AccessibleRole Property

    Specifies the control’s accessible role 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

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

    Property Value

    Type Description
    XRAccessibleRole

    The value that defines the XRShape role.

    Remarks

    Use the AccessibleRole property to specify how screen readers treat the XRShape control in exported PDF documents. You can change the value to Decorative or keep the default value of Figure.

    xrshape-accessible-role

    A decorative element is called an artifact and is not part of PDF document logical structure. An artifact does not appear in the tag tree and is considered external to the content.

    Note

    Do not exclude elements that carry meaning, use this tag only for decorative elements.

    Before you export your report, set the PdfExportOptions.PdfUACompatibility property to PdfUA1 to make the document PDF/UA compatible.

    The image below shows the result. XRShape.AccessibleRole is set to Decorative, and the screen reader treats XRShape as an artifact in the exported document:

    xrshape-artifact-result

    The AccessibleDescription property is not in effect for artifacts.

    See Also