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
C# Copy Code |
---|
public TimeSpan CellTime { get; set; } |
Visual Basic Copy Code |
---|
Public Property CellTime As TimeSpan |
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.
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 |
Visual Basic Copy Code |
---|
' Set the cell time to 10 minutes |