NtHeaderControl.DrawLines Method

Taking a look onto a NtHeaderControl, you will find the rows and columns being separated by thin lines:

NtHeaderControl performs the drawing of these lines in this method DrawLines().

Overload List:

Modifier / Return Value Name and Parameters Description

public virtual void

DrawLines ( Graphics g, Rectangle clipRect )

Draws horizontal and vertical lines to separate the rows and columns within the NtHeaderControl.

Return value:

void

Parameters:

Graphics g
This is the Graphics object provided by the system in the OnPaint method. Overriding methods use this parameter in order to draw the lines in their own way.

Rectangle clipRect
The Rectangle structure describing the clip rect for the current paint process.

Remarks:

You can implement your own line drawing by overriding this virtual method. Use the clip rect to reduce the drawing effort as far as possible. You will need the NtTimeChartControl.GetColWidth() and NtTimeChartControl.GetColX() members to calculate the appropriate coordinates.

See also:

NtTimeChartControl.GetColWidth()
NtTimeChartControl.GetColX()
NtTimeChartControl.DrawLines()
NtFlankControl.DrawLines()