This method sets the time and date mode.
HRESULT SetMode(
[in] SliderDisplayMode Mode)
Parameters:
Mode – An enum that determines the date and time option used. The following are possible values:
MODE_FIXED_TIME = 1
Always use a fixed time at the viewer position that can be
set using the FixedLocalTime
property.
MODE_TIME = 2
Always use a fixed time time that can be set using the DateTime property.
MODE_RANGE_PROJECT = 4
Use range according to project.
MODE_RANGE_CUSTOM = 8
Use a custom range that can be set using the TimeRangeStart and TimeRangeEnd properties.
MODE_ADJUST_FOR_GROUP = 16
Automatically adjust range to selected group. You can use this flag
in combination with the MODE_FIXED_TIME or MODE_TIME values.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |