aspnet-devexpress-dot-web-dot-aspxgantt-dot-stripline-5f79da2d.md
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
public string CssClass { get; set; }
Public Property CssClass As String
| Type | Description |
|---|---|
| String |
The name of the CSS class.
|
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"
});
See Also