NtTimeChartControl.GetColX Method

Returns the abscisse (X-coordinate) of a column in pixels.

Overload List:

Modifier / Return Value Name and Parameters Description

public virtual int

GetColX ( int c )

Returns the width of the column with the zero based index c.

Return value:

int
Abscisse (X-coordinate) of left edge of column c.

Parameters:

int c
Zero based index of the column.

Remarks:

Call this method to retrieve the X of the left edge of a column. Throws an exception if c is less than zero or bigger than the column count.
Note: It is ok to let c be equal to the column count. In this case the method will return the X value for the rightmost pixel of the rightmost column +1. Example: If the control has 100 columns with 40 pixels each, GetColX(100) will return 4000. Thus GetColX(c+1) is usable to obtain the X of the right edge +1 of each column.

See also:

GetRowY()
GetColGetColHeaderStr()
GetColWidth()
GetRowHeight()