Intersoft.Client.UI.DocumentViewers Namespace > FlowDocumentViewerBase Class : HighlightSelectionBrush Property |
Gets or sets the selection highlight background brush.
<CategoryAttribute("Brushes")> Public Property HighlightSelectionBrush As Brush
Dim instance As FlowDocumentViewerBase Dim value As Brush instance.HighlightSelectionBrush = value value = instance.HighlightSelectionBrush
[CategoryAttribute("Brushes")] public Brush HighlightSelectionBrush {get; set;}
[CategoryAttribute("Brushes")] public: property Brush^ HighlightSelectionBrush { Brush^ get(); void set ( Brush^ value); }
FlowDocument viewer supports text highlighting for FlowDocument elements. The highlighting is applied on both text selection and search results found on the document. You can customize the selection brushes through the provided properties.
The properties and the default values are listed in the table below.
Property | Value |
---|---|
HighlightSelectionBrush | #64006CC0 |
HighlightSearchBrush | #4CFAFF00 |
HighlightSelectedSearchBrush | #4C0074FF |
The following example shows how to customize the selection brushes in the viewer.
XAML |
Copy Code
|
---|---|
<Intersoft:UXFlowDocumentViewer HighlightSelectionBrush="#64006CC0" HighlightSearchBrush="#4CFAFF00" HighlightSelectedSearchBrush="#4C0074FF"/> |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2