Method InitializeTimeSteps
| Edit this page View SourceInitializeTimeSteps(int)
Updates the time slider to have the specified number of time steps.
Declaration
public void InitializeTimeSteps(int count)
Parameters
Type | Name | Description |
---|---|---|
int | count | The number of time steps. |
Remarks
This method divides the TimeSlider instance's FullExtent into the number of steps specified, updating the TimeStepInterval and TimeSteps properties. The method will attempt to set the interval to a TimeValue with the smallest duration and largest time unit that will fit evenly (i.e. without fractional duration values) into the TimeSlider's full extent. If there is no TimeValue that will fit evenly, then the interval will be initialized to the smallest possible fractional duration that is greater than one with a time unit of days or smaller.
Note that, if the TimeSlider instance's FullExtent property is not set, invoking this method will have no effect.