Search
TimetableSettings.CellTime Property
See Also
 






Gets or sets the time length of a single cell in a timetable view, accurate to the nearest second.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

public TimeSpan CellTime { get; set; }

Visual Basic  Copy Code

Public Property CellTime As TimeSpan

 Property Value

A TimeSpan object that specifies the time length of a single cell. The allowed values range from 1 second to 1 hour inclusive. Assign -1 ticks to this property to use the corresponding value from the current theme.

 Example

The following sample demonstrates several ways for setting the time span of timetable cells. The sample assumes that calendar already references an existing Calendar object.

C#  Copy Code

// Set the cell time to 10 minutes
calendar.TimetableSettings.CellTime = TimeSpan.FromMinutes(10);

// Set the cell time to 1 second
calendar.TimetableSettings.CellTime = TimeSpan.FromSeconds(1);

// Set the cell time to 1 minute and 20 seconds
calendar.TimetableSettings.CellTime = new TimeSpan(0, 1, 20);

Visual Basic  Copy Code

' Set the cell time to 10 minutes
calendar.TimetableSettings.CellTime = TimeSpan.FromMinutes(10)

' Set the cell time to 1 second
calendar.TimetableSettings.CellTime = TimeSpan.FromSeconds(1)

' Set the cell time to 1 minute and 20 seconds
calendar.TimetableSettings.CellTime = New TimeSpan(0, 1, 20)

 See Also