TimeScales object
The TimeScales object holds a collection of TimeScale objects. The control handles one or more time scales. Each time scale can display a different time zone, and can be aligned to any side of the schedule view. The TimeScales collection is accessible through the TimeScales property of the control. The TimeScaleFromPoint method gets the TimeScale object from the cursor. The TimeScalesFont defines the font to display the control's time scales. The TimeZone property defines the time zone of the time scale. The AllowMoveTimeScale property indicates the keys the user can move at runtime the time scale from a side to another. The AllowResizeTimeScale property indicates the keys the user can resize at runtime the time scale. The DayStartTime property defines the starting time of the day, and the DayEndTime property defines the ending time of the day.

The following screen show shows the control with two time-scales:

The TimeScales object support the following properties and methods:

NameDescription
AddAdds a TimeScale object to the collection and returns a reference to the newly created object.
ClearRemoves all objects in a collection.
CountReturns the number of objects in a collection.
ItemReturns a specific TimeScale of the TimeScales collection.
RemoveRemoves a specific member from the TimeScales collection.