PdfViewerControl.HighlightSelectionColor Property
Gets or sets the background color of the selected text. This is a dependency property.
Namespace: DevExpress.Xpf.PdfViewer
Assembly: DevExpress.Xpf.PdfViewer.v25.1.dll
NuGet Package: DevExpress.Wpf.PdfViewer
Declaration
Property Value
Type | Description |
---|---|
Color | A Color structure. |
Remarks
The following example uses a semi-transparent red as the text highlighting color. You can specify the color’s alpha component to change the transparency value:
<Window
xmlns:dxpdf="http://schemas.devexpress.com/winfx/2008/xaml/pdf" ...>
<Grid>
<dxpdf:PdfViewerControl x:Name="Viewer" HighlightSelectionColor="#5FFF0000"/>
<!--or-->
<dxpdf:PdfViewerControl x:Name="Viewer2">
<dxpdf:PdfViewerControl.HighlightSelectionColor>
<Color A="50" R="255" G="0" B="0" />
</dxpdf:PdfViewerControl.HighlightSelectionColor>
</dxpdf:PdfViewerControl>
</Grid>
</Window>
In code, you can call the Color.FromArgb
method to set the HighlightSelectionColor
:
See Also