Skip to main content

TaskLinkOptions.ColorSource Property

Gets or sets the value indicating which color should be used when painting a task link.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public TaskLinkColorSource ColorSource { get; set; }

Property Value

Type Description
TaskLinkColorSource

A TaskLinkColorSource enumeration value that specifies the source of the color to use for painting a task link.

Available values:

Name Description
ParentColor

The task link is painted with the color of the parent bar in the TaskLink relation.

ParentBorderColor

The task link is painted with the color of the parent bar’s border in the TaskLink relation.

ChildColor

The task link is painted with the color of the child bar in the TaskLink relation.

ChildBorderColor

The task link is painted with the color of the child bar’s border in the TaskLink relation.

OwnColor

The task link is painted with the color specified by the TaskLinkOptions.Color property.

Property Paths

You can access this nested property as listed below:

Object Type Path to ColorSource
GanttDrawOptions
.LinkOptions .ColorSource
GanttSeriesView
.LinkOptions .ColorSource

Remarks

Use the TaskLinkOptions.Color and ColorSource properties to specify the color which should be used to draw task links in the Gantt Series View. If the TaskLinkOptions.Color property is set to Empty, then the color value is obtained from the current Palette used in a chart.

Note

Changing the TaskLinkOptions.Color property value sets the ColorSource property to TaskLinkColorSource.OwnColor. If the ColorSource property value is different from TaskLinkColorSource.OwnColor, the TaskLinkOptions.Color property value is ignored.

See Also