Intersoft.Client.UI.DocumentViewers Namespace > FlowDocumentViewerBase Class : HighlightSearchBrush Property |
Gets or sets the search highlight background brush.
<CategoryAttribute("Brushes")> Public Property HighlightSearchBrush As Brush
Dim instance As FlowDocumentViewerBase Dim value As Brush instance.HighlightSearchBrush = value value = instance.HighlightSearchBrush
[CategoryAttribute("Brushes")] public Brush HighlightSearchBrush {get; set;}
[CategoryAttribute("Brushes")] public: property Brush^ HighlightSearchBrush { 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