GanttView.TimescaleRulerCount Property
Gets or sets the number of rulers displayed within the timescale. This is a dependency property.
Namespace: DevExpress.Xpf.Gantt
Assembly: DevExpress.Xpf.Gantt.v24.2.dll
NuGet Package: DevExpress.Wpf.Gantt
Declaration
Property Value
Type | Description |
---|---|
Int32 | A number of rulers displayed within the timescale. |
Remarks
Use the TimeScaleRulerCount property to set the number of rulers displayed within the timescale. When the TimeScaleRulerCount property is set to 0, the timescale is hidden.
You can customize each timescale ruler by handling the RequestTimescaleRulers event. The event args’ TimescaleRulers property returns a collection of timescale rulers currently displayed within the timescale. The timescale displays all the rulers from the event args’ TimescaleRulers collection. Use the TimeScaleRulerCount property to limit the number of rulers that the timescale displays.
When the RequestTimescaleRulers event is not handled, the timescale can display up to three rulers depending on the TimeScaleRulerCount property value.