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

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