Class GridHighlightSearchText
Implements the functionalities for highlighting the searching text. The highlight option works only if WrapText is set to false and AllowEnter is set to false.
Inheritance
System.Object
GridHighlightSearchText
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class GridHighlightSearchText
Constructors
GridHighlightSearchText()
Declaration
public GridHighlightSearchText()
Properties
HighlightColor
Gets or sets the color in which the text needs to be highlighted.
Declaration
public Color HighlightColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HighlightText
Gets or sets the text which needs to be highlighted.
Declaration
public string HighlightText { get; set; }
Property Value
Type |
---|
System.String |
Methods
UnWireGrid()
Unwires the grid and its components.
Declaration
public void UnWireGrid()
WireGrid(GridControlBase)
Wires the grid and its components.
Declaration
public void WireGrid(GridControlBase grid)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid |
WireGrid(GridControlBase, String)
Wires the grid and the text that needs to be highlighted.
Declaration
public void WireGrid(GridControlBase grid, string text)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase. |
System.String | text | The text is a string which searches the whole grid. |