NtFlankControl.DrawLines Method

Taking a look onto a NtFlankControl, you will find the rows in the NtFlankControl are separated by a thin black line:

NtFlankControl 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, Point altAutoScrollPosition )

Draws horizontal and vertical lines to separate the rows and columns within the NtFlankControl (and its derivates).

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.

Point altAutoScrollPosition
Typically any drawing process has to be corrected by the current scroll position of the control. See the System.Windows.Forms.ScrollableControl.AutoScrollPosition member for details. In fact, altAutoScrollPosition is not always the AutoScrollPosition: In case of row dragging, this member is also corrected by the drag displacement. When overriding DrawLines you do not need to bother about this.

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.GetRowHeight() and NtTimeChartControl.GetRowY() members to calculate the appropriate coordinates.

See also:

NtTimeChartControl.GetRowHeight()
NtTimeChartControl.GetRowY()