API Documentation -> NtTimeChartControl -> Cols

# NtTimeChartControl.Cols Property

Readonly
This property returns the number of columns the control covers by its full horizontal scroll range. Please note: The scroll range is different from the time range: The time range may cover many thousand years, while the scroll range covers the time area you sweep over by one full scroll sweep from left to right, which ranges from a few hours up to a few month, depending on the display mode currently activated and the settings you determined while initializing.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public int | Cols | Number of columns covered by the control.

Return value:

int
The control is organized in columns. For example you might have set your control to have one column per hour. If the control in this case is set up to cover five days within one scroll sweep, you will in general have 5*24 = 120 columns.

Remarks:

When initializing your Nateo.NtTimeChartControl (or your derivate), you pass the number of columns as a parameter as well as the column width in pixels. Doing so you automatically define the sheet width of the control at once. This is the scrollable range the user can cover by one single scroll sweep. It is defined as column count * column width. You can then retrieve the number of columns any time by using this readonly property.

See also:

GetColWidth()
GetColX()
Rows

Top API Documentation -> NtTimeChartControl -> Cols © 2016 Bassaly