Skip to main content
A newer version of this page is available. .

DayView.TimeScale Property

Gets or sets the time interval for the time slots in the scheduling area.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.dll

Declaration

[XtraSerializableProperty]
public TimeSpan TimeScale { get; set; }

Property Value

Type Description
TimeSpan

A TimeSpan value representing the time interval for the time slots.

Remarks

Use the TimeScale property to specify the time interval which is the amount by which the time scale displayed in the scheduling area increments. This property’s value applies to the time slots and time rulers in the scheduling area. When a new value is set for the TimeScale property, the lines which divide up the hours change in the time ruler to reflect the increment specified.

Note that the TimeScale property cannot be set to any arbitrary value. When assigning a value to the TimeScale property it is automatically calculated so as to be equal to the nearest TimeSlot.Value set for one of the time slots which are contained within the DayView.TimeSlots collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TimeScale property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also