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.

StripLineBase.Duration Property

Gets or sets the duration of the highlighted time range. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.1.dll

Declaration

public TimeSpan Duration { get; set; }
Public Property Duration As TimeSpan

Property Value

Type Description
TimeSpan

The highlighted time range duration.

Remarks

Use the Duration property to set the highlighted time span duration.

NOTE

The Duration property has no effect for the CurrentDateTimeStripLine.

<dxgn:GanttView.StripLines>
    <!-- The Duration set to 5 hours 10 minutes 45 seconds -->
    <dxgn:StripLine Duration="5:10:45"
        StartDate="08/28/2019 10:00:00" />
    <!-- The Duration is set to 1 day 6 hours -->
    <dxgn:StripLineRule 
        Duration="1.6:0:0"
        HideOnZoom="1:0:0"
        Recurrence="{dxgn:Weekly DayOfWeek=Friday, Start=1/1/2019, Until=9/1/2019}"
        StartOffset="8:0:0"/>
</dxgn:GanttView.StripLines>
See Also