RequestTimescaleRulersEventArgs.TimescaleRulers Property
Get or sets a collection of timescale rulers displayed at the current zoom level.
Namespace: DevExpress.Xpf.Gantt
Assembly: DevExpress.Xpf.Gantt.v24.2.dll
NuGet Package: DevExpress.Wpf.Gantt
Declaration
Property Value
Type | Description |
---|---|
List<TimescaleRuler> | A collection of timescale rulers displayed at the current zoom level. |
Remarks
Example
The code sample below demonstrates how to change the TimescaleRulers collection.
private void view_RequestTimescaleRulers(object sender, DevExpress.Xpf.Gantt.RequestTimescaleRulersEventArgs e) {
// Remove a ruler from timescale
e.TimescaleRulers.RemoveAt(2);
// Add a ruler that indicates hours
e.TimescaleRulers.Add(new DevExpress.Xpf.Gantt.TimescaleRuler(DevExpress.Xpf.Gantt.TimescaleUnit.Hour));
// Add a ruler that indicates 30 minute ranges
e.TimescaleRulers.Add(new DevExpress.Xpf.Gantt.TimescaleRuler(DevExpress.Xpf.Gantt.TimescaleUnit.Minute, 30));
}
See Also