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






Gets or sets the selection highlight background brush.

Gets or sets the selection highlight background brush.

Syntax

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