windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-cf1db8d7.md
Increases the time ruler scale.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
public void ZoomIn()
Public Sub ZoomIn
The GanttControl.OptionsMainTimeRuler.Unit property specifies the time interval that corresponds to a single measure unit on the time scale. For example, the time scale can be in hours, days, or months.
The time scale displays division marks. The GanttControl.OptionsMainTimeRuler.Count property specifies the number of measure units in a single division on the time scale. For example, if the measure unit is an hour, a single division can correspond to one, two, or six hours.
Users can hold Ctrl and use the mouse wheel to change the measure unit. The GanttControl.ZoomMode property specifies how the scale changes:
The GanttControl.OptionsMainTimeRuler.MinUnit and GanttControl.OptionsMainTimeRuler.MaxUnit properties specify the minimum and maximum measure units.
You can call the GanttControl.ZoomIn and GanttControl.ZoomOut methods to change the measure unit in code.
See Also