Skip to main content
All docs
V25.1
  • StripLine.CssClass Property

    Specifies the name of the cascading style sheet (CSS) class associated with a strip line.

    Namespace: DevExpress.Web.ASPxGantt

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

    NuGet Package: DevExpress.Web

    Declaration

    public string CssClass { get; set; }

    Property Value

    Type Description
    String

    The name of the CSS class.

    Remarks

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

    Web Forms:

    <style>
        .line-1 {
            border-left: 1px solid red;
        }
    </style>
    <dx:ASPxGantt ID="Gantt" runat="server"...>
        ...
        <SettingsStripLine>
            <StripLines>
                <dx:StripLine Title="Start Time" Start="2019-02-21T08:00:00.000Z" CssClass="line-1"/>
            <StripLines>
        </SettingsStripLine>
    </dx:ASPxGantt>
    

    MVC:

    <style>
        .line-1 {
            border-left: 1px solid red;
        }
    </style>
    
    settings.SettingsStripLine.StripLines.Add(new StripLine() { 
        Title = "Final Period",
        Start = new DateTime(2019, 07, 02), 
        CssClass = "line-1"
    });
    

    Examples

    See Also