Back to Devexpress

GanttStripLineSettings.ShowCurrentTime Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttstriplinesettings-f818ad97.md

latest3.1 KB
Original Source

GanttStripLineSettings.ShowCurrentTime Property

Specifies whether to highlight the current time in the Gantt control.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool ShowCurrentTime { get; set; }
vb
<DefaultValue(False)>
Public Property ShowCurrentTime As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to highlight the current time; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ShowCurrentTime
ASP.NET MVC ExtensionsGanttSettings

.SettingsStripLine .ShowCurrentTime

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsStripLine .ShowCurrentTime

|

Remarks

Set the ShowCurrentTime property to true to highlight the current time and use the CurrentTimeUpdateInterval property to specify the time interval between the current time updates.

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

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsStripLine ShowCurrentTime="true" CurrentTimeUpdateInterval="5" />
</dx:ASPxGantt>
csharp
Gantt.SettingsStripLine.ShowCurrentTime = true; 
Gantt.SettingsStripLine.CurrentTimeUpdateInterval = 5;

MVC:

cshtml
settings.SettingsStripLine.ShowCurrentTime = true; 
settings.SettingsStripLine.CurrentTimeUpdateInterval = 5;

Examples

See Also

ASPxGantt - 'How To' Examples

GanttStripLineSettings Class

GanttStripLineSettings Members

DevExpress.Web.ASPxGantt Namespace