Intersoft ClientUI Documentation
HighlightSearchBrush Property
See Also  Send Feedback
Intersoft.Client.UI.DocumentViewers Namespace > FlowDocumentViewerBase Class : HighlightSearchBrush Property






Gets or sets the search highlight background brush.

Gets or sets the search highlight background brush.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Brushes")>
Public Property HighlightSearchBrush As Brush
Visual Basic (Usage)Copy Code
Dim instance As FlowDocumentViewerBase
Dim value As Brush
 
instance.HighlightSearchBrush = value
 
value = instance.HighlightSearchBrush
C# 
[CategoryAttribute("Brushes")]
public Brush HighlightSearchBrush {get; set;}
Delphi 
public read-write property HighlightSearchBrush: Brush; 
JScript 
CategoryAttribute("Brushes")
public function get,set HighlightSearchBrush : Brush
Managed Extensions for C++ 
[CategoryAttribute("Brushes")]
public: __property Brush* get_HighlightSearchBrush();
public: __property void set_HighlightSearchBrush( 
   Brush* value
);
C++/CLI 
[CategoryAttribute("Brushes")]
public:
property Brush^ HighlightSearchBrush {
   Brush^ get();
   void set (    Brush^ value);
}

Remarks

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"/>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.