API Documentation -> NtTimeChartControl -> CalculateSheetRightDt

# NtTimeChartControl.CalculateSheetRightDt Method

The so called 'Sheet' is the surface the visual representation of your data objects is being painted on. You can move it around by using the horizontal and vertical scroll bars. Or you can pick the sheet with the mouse and move it around. In other words, the sheet represents that section of the overall time range, that you can cover with one scroll sweep from left to right. Please see the Sheet section in the Nateo Concepts Documentation for details.
When developing software along with the NtTimeChartControl, you might get into the need to calculate the time stamp of the right edge of the sheet. This time stamp is referred to as sheetRightDt, while the left edge is referred to as sheetLeftDt. For a given sheetLeftDt you can easily calculate the sheetRightDt by means of this method.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
static public DateTime | CalculateSheetRightDt ( DateTime sheetLeftDt, TimeDisplayMode timeDisplayMode, int cols ) | Calculate the sheetRightDt for a given sheetLeftDt, the columns and the TimeDisplayMode

Return value:

DateTime
This is the time stamp of the right edge of a potential sheet which you define by the TimeDisplayMode, the left edge (sheetLeftDt) and the number of columns.

Parameters:

DateTime sheetLeftDt
The left edge of the potential sheet.

TimeDisplayMode timeDisplayMode
This value defines the duration of one column: 5 Minutes, 15 Minutes, an hour, 6 hours, a day, a month. Along with the number of columns you define the duration of the full sheet.

int cols
The number of columns of the potential sheet. Only integer values are possible.

Remarks:

When setting up a NtTimeChartControl, you should ensure that the left edge of the sheet (sheetLeftDt) always fits midnight GMT of whatever day.

See also:

ScrollToDt()
SheetLeftDt
SheetRightDt
TimeDisplayMode

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