Skip to main content

GanttStripLineSettings.StripLines Property

Provides access to the strip line collection.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v22.1.dll

Declaration

[DefaultValue(null)]
public StripLineCollection StripLines { get; }

Property Value

Type Default Description
StripLineCollection

null

The collection of strip lines.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to StripLines
ASP.NET MVC Extensions GanttSettings
.SettingsStripLine.StripLines
MVCxGantt
.SettingsStripLine.StripLines
ASP.NET Web Forms Controls ASPxGantt
.SettingsStripLine.StripLines

Remarks

Use the StripLines property to access strip lines.

Gantt - Create Strip Line

Run Demo: ASPxGantt - Strip Lines Run Demo: MVCxGantt - Strip Lines

Web Forms:

<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsStripLine>
        <StripLines>
            <dx:StripLine Title="Start Time" Start="2020-06-21T08:00:00.000Z"/>
        </StripLines>
    </SettingsStripLine>
</dx:ASPxGantt>
StripLine startLine = new StripLine();
startLine.Title = "Start Time";
startLine.Start = new DateTime(2020, 06, 21, 08, 00, 00); 

Gantt.SettingsStripLine.StripLines.Add(startLine);

MVC:

settings.SettingsStripLine.StripLines.Add(new StripLine() { 
    Title = "Start Time",
    Start = new DateTime(2020, 06, 21) 
});

Examples

See Also