Back to Devexpress

GanttStripLineSettings.StripLines Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttstriplinesettings.md

latest3.2 KB
Original Source

GanttStripLineSettings.StripLines Property

Provides access to the strip line collection.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public StripLineCollection StripLines { get; }
vb
<DefaultValue(Nothing)>
Public ReadOnly Property StripLines As StripLineCollection

Property Value

TypeDefaultDescription
StripLineCollectionnull

The collection of strip lines.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to StripLines
ASP.NET MVC ExtensionsGanttSettings

.SettingsStripLine .StripLines

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsStripLine .StripLines

|

Remarks

Use the StripLines property to access strip lines.

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

Web Forms:

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

Gantt.SettingsStripLine.StripLines.Add(startLine);

MVC:

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

Examples

See Also

ASPxGantt - 'How To' Examples

GanttStripLineSettings Class

GanttStripLineSettings Members

DevExpress.Web.ASPxGantt Namespace