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

CustomDrawTaskDependencyEventArgs.Lines Property

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

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.2.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