Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RequestTimescaleRulersEventArgs.Zoom Property

Gets the current zoom.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v24.2.dll

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public TimeSpan Zoom { get; }

#Property Value

Type Description
TimeSpan

A time span that occupies 1 pixel in the timescale.

#Remarks

The Zoom property returns a System.TimeSpan value that occupies a single pixel rendered on screen.

The image below illustrates the GanttControl with the Zoom property set to 1 minute. This means that each hour in the time scale occupies 60 pixels (1 px for each minute) and each 30 minute span occupies 30 pixels.

See Also