Skip to main content

GanttControlOptionsMainTimeRuler.MinUnit Property

Gets or sets the minimum time interval that corresponds to a single unit on the timescale.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.2.dll

Declaration

[DXCategory("Appearance")]
[XtraSerializableProperty]
public GanttTimescaleUnit MinUnit { get; set; }

Property Value

Type Description
GanttTimescaleUnit

A value that specifies the minimum time interval that corresponds to a single unit on the timescale.

Available values:

Name Description
Millisecond

A single unit corresponds to a millisecond.

Second

A single unit corresponds to a second.

Minute

A single unit corresponds to a minute.

Hour

A single unit corresponds to an hour.

Day

A single unit corresponds to a day.

Week

A single unit corresponds to a week.

Month

A single unit corresponds to a month.

Quarter

A single unit corresponds to a quarter of the year.

HalfYear

A single unit corresponds to a half of the year.

Year

A single unit corresponds to a year.

Property Paths

You can access this nested property as listed below:

Object Type Path to MinUnit
GanttControl

Remarks

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.

image

image

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.

image

image

Users can hold Ctrl and use the mouse wheel to change the measure unit. The GanttControl.ZoomMode property specifies how the scale changes:

  • first decreases the size of a single division to a certain limit and then switches to the next measure unit (week, month, quarter, etc.).
  • switches to the next measure unit by each wheel step

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