All docs
V20.1
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.

CurrentDateTimeStripLine Class

Represents a strip line that indicates the current time (DateTime.Now), and automatically updates its position onscreen.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public sealed class CurrentDateTimeStripLine :
    StripLineBase
Public NotInheritable Class CurrentDateTimeStripLine
    Inherits StripLineBase

Remarks

How to Use

Use the GanttView.StripLines property to populate a collection of strip lines displayed within the Gantt area.

<Window ...
    xmlns:dxgn="http://schemas.devexpress.com/winfx/2008/xaml/gantt" />

<dxgn:GanttControl ItemsSource="{Binding Tasks}" >
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            x:Name="view" ... >
            <dxgn:GanttView.StripLines>
                <dxgn:CurrentDateTimeStripLine />
            </dxgn:GanttView.StripLines>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
</Window>

wpf Gantt strip lines today line

The Strip Lines document describes how to load strip lines from a ViewModel.

NOTE

The following properties does not affect the CurrentDateTimeStripLine:

See Also