All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.1.dll

Declaration

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

Optional Parameters

Name Type Default Description
margin Double

0

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