Back to Devexpress

StripLineCollection Class

aspnet-devexpress-dot-web-dot-aspxgantt-03f163d4.md

latest2.6 KB
Original Source

StripLineCollection Class

A collection of strip lines.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public class StripLineCollection :
    Collection
vb
Public Class StripLineCollection
    Inherits Collection

The following members return StripLineCollection objects:

Remarks

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

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsStripLine>
        <StripLines>
            <dx:StripLine Title="Final Period" Start="2019-07-02T12:00:00.000Z" End="2019-07-04T12:00:00.000Z" />
        </StripLines>
    </SettingsStripLine>
</dx:ASPxGantt>
csharp
StripLine finalPeriod = new StripLine();
finalPeriod.Title = "Final Period";
finalPeriod.Start = new DateTime(2019, 07, 02); 
finalPeriod.End = new DateTime(2019, 07, 04); 

Gantt.SettingsStripLine.StripLines.Add(finalPeriod);

MVC:

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

Implements

IList

ICollection

IEnumerable

IStateManager

DevExpress.Utils.IAssignableCollection

Inheritance

Object StateManagedCollectionBase Collection StripLineCollection

See Also

StripLineCollection Members

DevExpress.Web.ASPxGantt Namespace