Gets or sets the time length of a single cell in a timetable view, accurate to the nearest second.
Namespace: MindFusion.Scheduling.Wpf
Assembly: MindFusion.Scheduling.Wpf
SyntaxC#
Copy Code
|
|---|
public TimeSpan CellTime { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property CellTime As TimeSpan |
A .NET TimeSpan object that specifies the time length of a single cell. The allowed values range from 1 second to 1 hour inclusive.
Unset the local value of this property to use the corresponding value from the current theme. To unset the property value, call ClearValue on the settings containing the property and pass a reference to the DependencyProperty representing the property.
ExampleThe 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 |
See Also