Skip to main content
All docs
V25.1
  • DocumentViewerBase.UseDirectXPaint Property

    Specifies whether the Document Viewer control uses the DirectX Hardware Acceleration.

    Namespace: DevExpress.DocumentView.Controls

    Assembly: DevExpress.Utils.v25.1.dll

    NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

    Declaration

    [DefaultValue(DefaultBoolean.Default)]
    [DXCategory("Appearance")]
    public virtual DefaultBoolean UseDirectXPaint { get; set; }

    Property Value

    Type Default Description
    DefaultBoolean Default

    True, to enable the DirectX Hardware Acceleration for the Document Viewer control; otherwise, False. The Default value is equivalent to False.

    Available values:

    Name Description Return Value
    True

    The value is true.

    0

    False

    The value is false.

    1

    Default

    The value is specified by a global option or a higher-level object.

    2

    Remarks

    The GDI+ library is the default rendering engine for the Document Viewer control. If a viewer displays a document that contains many pages, this engine might render this document slowly. You can switch to the DirectX rendering engine to boost rendering performance. For this, enable the viewer’s UseDirectXPaint property. You can set the viewer’s EnableSmoothScrolling property to True to allow for more smooth page scrolling in DirectX mode. Note that smooth scrolling might require more application resources to render the pages.

    The following limitations apply to the viewer when it uses DirectX rendering:

    • The Cached Report Source component is not supported.
    • The XRRichText control is rendered as an opaque image. The default GDI+ library is used to render this control.
    • String sizes in a document might be greater compared with the case when the GDI+ library is used to render the document.
    • GDI+ and DirectX use different measurement mechanisms, and rendering problems can also occur near page boundaries.
    See Also