Back to Devexpress

StripLine.CssClass Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-stripline-5f79da2d.md

latest2.3 KB
Original Source

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.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public string CssClass { get; set; }
vb
Public Property CssClass As String

Property Value

TypeDescription
String

The name of the CSS class.

|

Remarks

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

Web Forms:

aspx
<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:

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

Examples

See Also

ASPxGantt - 'How To' Examples

StripLine Class

StripLine Members

DevExpress.Web.ASPxGantt Namespace