Class LinkLabelCellRenderer
Implements the cell renderer for LinkLabel cell.
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class LinkLabelCellRenderer : GridTextBoxCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
LinkLabelCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the LinkLabelCellRenderer class.
Declaration
public LinkLabelCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The grid control. |
GridCellModelBase | cellModel | The cell model. |
Properties
ActiveLinkColor
Gets or sets the color for active link.
Declaration
public Color ActiveLinkColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
EXEname
Gets or sets the browser.
Declaration
public string EXEname { get; set; }
Property Value
Type |
---|
System.String |
VisitedLinkColor
Gets or sets the color for visited link.
Declaration
public Color VisitedLinkColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
EnableDrawLink(Boolean, Int32, Int32)
Used to call the DrawLink method .
Declaration
protected void EnableDrawLink(bool draw, int row, int col)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | draw | sets the DrawLink value as true or false. |
System.Int32 | row | Row index of a cell. |
System.Int32 | col | Column index of a cell. |
LaunchBrowser(GridStyleInfo)
Launches the web browser.
Declaration
protected virtual void LaunchBrowser(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | Cell style. |
OnCancelMode(Int32, Int32)
Overridden to disable the mouse down and hotlink flags.
Declaration
protected override void OnCancelMode(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
Overrides
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Overridden to set the text color of a cell.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics of a cell. |
System.Drawing.Rectangle | clientRectangle | Rectangle |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnGetCursor(Int32, Int32)
Overridden to set cursor type.
Declaration
protected override Cursor OnGetCursor(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
Returns
Type | Description |
---|---|
System.Windows.Forms.Cursor | Cursor type. |
Overrides
OnHitTest(Int32, Int32, MouseEventArgs, IMouseController)
Is triggered when the cursor is hit and actions are performed.
Declaration
protected override int OnHitTest(int rowIndex, int colIndex, MouseEventArgs e, IMouseController controller)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
IMouseController | controller | Mouse controller of grid. |
Returns
Type | Description |
---|---|
System.Int32 | 0 if controller is not null otherwise 1. |
Overrides
OnMouseDown(Int32, Int32, MouseEventArgs)
Overridden to handle the hyperlink clicks.
Declaration
protected override void OnMouseDown(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnMouseHover(Int32, Int32, MouseEventArgs)
Occurs when mouse hover the column header.
Declaration
protected override void OnMouseHover(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnMouseHoverLeave(Int32, Int32, EventArgs)
Occurs when mouse leaves the area.
Declaration
protected override void OnMouseHoverLeave(int rowIndex, int colIndex, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.EventArgs | e | The System.EventArgs that contains the event data. |
Overrides
OnMouseUp(Int32, Int32, MouseEventArgs)
Overridden to handle the mouse up.
Declaration
protected override void OnMouseUp(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |