Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttStripLineBuilder Class

Represents a strip line.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
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