Skip to main content
All docs
V25.1
  • 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.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DefaultValue(DefaultBoolean.Default)]
    [DXCategory("Appearance")]
    public virtual 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.

    0

    False

    The value is false.

    1

    Default

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

    2

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to UseDirectXPaint
    RepositoryItemTextEdit
    .AdvancedModeOptions .UseDirectXPaint

    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.

    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.

    See Also