Skip to main content

GanttStripLineBuilder Class

Represents a strip line.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public class GanttStripLineBuilder :
    OptionsOwnerBuilder,
    ICollectionItem

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.

@(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

Inheritance

Object
OptionsOwnerBuilder
GanttStripLineBuilder
See Also