Skip to main content
All docs
V25.2
  • XRWatermark.TextAccessibleRole Property

    Specifies the role of a text watermark (XRWatermark) 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

    public XRAccessibleRole TextAccessibleRole { get; set; }

    Property Value

    Type Description
    XRAccessibleRole

    The value that defines the XRWatermark role.

    Remarks

    Use the TextAccessibleRole property to specify how screen readers interpret text watermarks in exported PDF documents. You can change the value to Paragraph or keep the default value of Artifact. An artifact does not appear in the tag tree and is considered external to the content. The TextAccessibleDescription property is not in effect for artifacts.

    If a text watermark conveys meaning and you want to include it to PDF document logical structure, set TextAccessibleRole to Paragraph when you create or edit the watermark:

    Text Accessible Role Property Set to Paragraph

    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. XRWatermark.TextAccessibleRole is set to Paragraph, and the screen reader treats XRWatermark as a paragraph in the exported document:

    PDF Tag Structure with Watermark as Paragraph

    Use the XRWatermark.TextAccessibleDescription property to specify the description of the resulting element:

    Text Accessible Description Property

    See Also