Back to Devexpress

StripLineBase.Duration Property

wpf-devexpress-dot-xpf-dot-gantt-dot-striplinebase-f18687fb.md

latest1.7 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

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

Property Value

TypeDescription
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.

xaml
<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

StripLineBase Class

StripLineBase Members

DevExpress.Xpf.Gantt Namespace