Skip to main content

CustomDrawTaskDependencyEventArgs.Lines Property

Provides access to the collection of RectangleF structures that specify the processed dependency line.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.1.dll

NuGet Package: DevExpress.Win.Gantt

Declaration

public List<RectangleF> Lines { get; }

Property Value

Type Description
List<RectangleF>

A collection of RectangleF structures.

Remarks

A dependency line that connects two tasks is represented by a series of line segments meeting at a right angle. RectangleF structures in the Lines collection specify the line segments.

Example

The code below shows how to make dependency lines twice as wide.

image

using DevExpress.XtraGantt;

private void ganttControl1_CustomDrawTaskDependency(object sender, CustomDrawTaskDependencyEventArgs e) {
    for (int i = 0; i < e.Lines.Count; i++) {
        var line = e.Lines[i];
        if (line.Width == 1)
            line.Width = 2;
        if (line.Height == 1)
            line.Height = 2;
        e.Lines[i] = line;
    }
}
See Also