Skip to main content
All docs
V25.1
  • TextEditBase.SelectionOpacity Property

    Gets or sets the TextEditBase selection opacity. This is a dependency property.

    Namespace: DevExpress.Xpf.Editors

    Assembly: DevExpress.Xpf.Core.v25.1.dll

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public double SelectionOpacity { get; set; }

    Property Value

    Type Description
    Double

    The TextEditBase selection opacity.

    Remarks

    The following code sample specifies the CaretBrush, CornerRadius, SelectionBrush, and SelectionOpacity properties:

    <Window ...
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
        <StackPanel>
            <dxe:TextEdit Margin="5" Padding="2,4"
                          BorderThickness="2" EditValue="Custom Appearance"
                          CornerRadius="14" Background="#FFE9EBEC"
                          BorderBrush="#FFE9EBEC" CaretBrush="Red"
                          SelectionBrush="BlueViolet" SelectionOpacity="0.1"/>
        </StackPanel>
    </Window>
    

    Note

    The property is supported in the following DevExpress themes:

    Theme Family Themes
    Windows 11 Dark, Light
    Windows 10 Dark, Light
    Office 2019 Black, Colorful, Dark Gray, White, HighContrast
    Visual Studio 2019 Blue, Dark, Light
    Office 2016 SE Black, Colorful, Dark Gray, White
    Visual Studio 2017 Blue, Dark, Light
    See Also