XRBarCode.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
Property Value
| Type | Description |
|---|---|
| XRAccessibleRole | The value that defines the |
Remarks
Use the AccessibleRole property to specify how screen readers treat the XRBarCode control in exported PDF documents. You can change the value to Decorative or keep the default value of Figure.

A decorative element, known as an artifact, is not part of a PDF document’s logical structure. Artifacts do not appear in the tag tree and are excluded from the document’s main 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. XRBarCode.AccessibleRole is set to Decorative, and the screen reader treats XRBarCode as an artifact in the exported document:

The AccessibleDescription property is not in effect for artifacts.