GanttStripLineSettings.StripLines Property
Provides access to the strip line collection.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.2.dll
Declaration
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 |
|
ASP.NET Web Forms Controls | ASPxGantt |
|
Remarks
Use the StripLines property to access 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