aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttstriplinesettings.md
Provides access to the strip line collection.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(null)]
public StripLineCollection StripLines { get; }
<DefaultValue(Nothing)>
Public ReadOnly Property StripLines As StripLineCollection
| Type | Default | Description |
|---|---|---|
| StripLineCollection | null |
The collection of strip lines.
|
You can access this nested property as listed below:
| Library | Object Type | Path to StripLines |
|---|---|---|
| ASP.NET MVC Extensions | GanttSettings |
.SettingsStripLine .StripLines
| | ASP.NET Web Forms Controls | ASPxGantt |
.SettingsStripLine .StripLines
|
Use the StripLines property to access strip lines.
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)
});
See Also