Xceed Grid for WinForms v4.3 Documentation
GridLinePen Property


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class : GridLinePen Property
Gets the pen that is used to draw the gridlines.
Syntax
'Declaration
 
<BrowsableAttribute(False)>

<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>

Public ReadOnly Property GridLinePen As Pen
'Usage
 
Dim instance As GridControl

Dim value As Pen

 

value = instance.GridLinePen
[Browsable(false)]

[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

public Pen GridLinePen {get;}

Property Value

A reference to a System.Drawing.Pen object representing the pen that is used to draw the gridlines.
Remarks

The System.Drawing.Pen object returned is based on the values of the GridLineColor and GridLineStyle properties.

When overriding VisualGridElement.PaintBorders in a derived class or to draw a line exactly like the grid's, GridLinePen can be used.
Requirements

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

See Also

Reference

GridControl Class
GridControl Members