Back to Devexpress

GanttStripLineBuilder Class

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-772f7794.md

latest3.5 KB
Original Source

GanttStripLineBuilder Class

Represents a strip line.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public class GanttStripLineBuilder :
    OptionsOwnerBuilder,
    ICollectionItem

The following members return GanttStripLineBuilder objects:

Show 13 links

Remarks

The Gantt control uses strip lines to highlight certain time or time intervals in the chart. Use the StripLines(Action<CollectionFactory<GanttStripLineBuilder>>) method to manage strip lines.

Use the Start method to specify an individual line or combine it with the End method setting to specify a time interval.

cshtml
@(Html.DevExtreme().Gantt()
    .StripLines(stripLines => 
        stripLines.Add()
            .Start(new DateTime(DateTime.Now)
            .Title("CurrentTime");
        stripLines.Add()
            .Start(new Date(1920, 9, 10))
            .End(new Date(1920, 11, 1))
            .Title("Final Stage");
        // ...
    )
)

Implements

ICollectionItem

Inheritance

Object OptionsOwnerBuilder GanttStripLineBuilder

See Also

GanttStripLineBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace