TextEditAdvancedModeOptions.UseDirectXPaint Property
Gets or sets whether an editor uses the DirectX Hardware Acceleration. DirectX is required to support some of the unique editor features available when this editor is in Advanced Mode. See this property for more information about this mode: RepositoryItemTextEdit.UseAdvancedMode.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public DefaultBoolean UseDirectXPaint { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | Specifies whether the editor uses the DirectX or traditional GDI renderer. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Property Paths
You can access this nested property as listed below:
Object Type | Path to UseDirectXPaint |
---|---|
RepositoryItemTextEdit |
|
Remarks
TextEdit-based editors use the standard GDI renderer even when you turn on the DirectX Hardware Acceleration in the Project Settings Page or call the global WindowsFormsSettings.ForceDirectXPaint() method. You need to enable this TextEditAdvancedModeOptions.UseDirectXPaint
property for every editor that should operate in this mode.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UseDirectXPaint property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.