windowsforms-devexpress-dot-documentview-dot-controls-dot-documentviewerbase.md
Specifies whether the Document Viewer control uses the DirectX Hardware Acceleration.
Namespace : DevExpress.DocumentView.Controls
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public virtual DefaultBoolean UseDirectXPaint { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Appearance")>
Public Overridable Property UseDirectXPaint As DefaultBoolean
| 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
|
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:
See Also