CustomDrawTaskDependencyEventArgs.Lines Property
In This Article
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<Rectangle |
A collection of Rectangle |
#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.
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