Back to Devexpress

GanttView.FitDataToWidth(Double) Method

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-dot-fitdatatowidth-x28-system-dot-double-x29.md

latest1.8 KB
Original Source

GanttView.FitDataToWidth(Double) Method

Zooms Gantt tasks to fit them into the Gantt area with a specified margin.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public void FitDataToWidth(
    double margin = 0
)
vb
Public Sub FitDataToWidth(
    margin As Double = 0
)

Optional Parameters

NameTypeDefaultDescription
marginDouble0

A distance (in pixels) between a left-most task and the left border of Gantt area (or a right-most task and the right border). The left and right margin are equal.

|

Remarks

The method call has no result until the GanttControl is loaded and has a non-zero width, or not bound to data.

See Also

ZoomIn(Nullable<Point>)

ZoomOut(Nullable<Point>)

ZoomRange

FitRangeToWidth(DateTime, DateTime)

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace