Skip to main content

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public TimeSpan Duration { get; set; }

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