Back to Devexpress

StripLine.End Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-stripline-15a128cf.md

latest2.7 KB
Original Source

StripLine.End Property

Specifies the end point of a strip line.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public DateTime? End { get; set; }
vb
Public Property [End] As Date?

Property Value

TypeDescription
Nullable<DateTime>

The end point.

|

Remarks

Specify the Start property together with the End property setting to specify a time interval.

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() { 
    Title = "Final Period",
    Start = new DateTime(2019, 07, 02), 
    End = new DateTime(2019, 07, 04) 
});

Examples

See Also

ASPxGantt - 'How To' Examples

StripLine Class

StripLine Members

DevExpress.Web.ASPxGantt Namespace