Skip to main content

GanttSettings.SettingsStripLine Property

Provides access to strip line settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public GanttStripLineSettings SettingsStripLine { get; }

Property Value

Type Description
GanttStripLineSettings

Strip line settings.

Remarks

The GanttExtension uses strip lines to highlight a certain time or time intervals in the chart. Use the StripLines collection to access strip lines (StripLine).

Use the Start property to specify an individual line or combine it with the End property setting to specify a time interval.

You can also use the Title and CssClass properties to specify the object’s title and appearance settings.

Run Demo: MVCxGantt - Strip Lines

Create a Single Strip Line

Create a StripLine object, specify its Start property, and add this object to the control’s StripLines collection.

Gantt - Create Strip Line

settings.SettingsStripLine.StripLines.Add(new StripLine() { 
    Start = new DateTime(2019, 02, 21) 
});

Highlight a Time Interval

Create a StripLine object, specify its Start and End properties, and add this object to the control’s StripLines collection.

Gantt - Highlight Time Interval

settings.SettingsStripLine.StripLines.Add(new StripLine() { 
    Start = new DateTime(2019, 07, 02), 
    End = new DateTime(2019, 07, 04) 
});

Highlight Current Time

Set the ShowCurrentTime property to true in the GanttStripLineSettings object to highlight the current time in the control. Use the CurrentTimeUpdateInterval property to specify the time interval between the current time updates.

Highlight Current Time

settings.SettingsStripLine.ShowCurrentTime = true; 
settings.SettingsStripLine.CurrentTimeUpdateInterval = "5"; 
See Also