This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITimeDuration Interface > ITimeDuration.Scale Method (ArcObjects .NET 10.4 SDK) |
Scales the time duration by a scale factor.
[Visual Basic .NET] Public Sub Scale ( _ ByVal scaleFactor As Double _ )
[C#] public void Scale ( double scaleFactor );
[C++]
HRESULT Scale(
double scaleFactor
);
[C++]
Parameters scaleFactor [in] scaleFactor is a parameter of type double
The scale function can be used to increase or decrease the given duration. For example, if you want to divide a time extent into 5 equal segments, you can get the TimeDuration from the TimeExent, then scale the TimeDuration by 1/5 and add the resulting TimeDuration to the TimeExtent's Start Time.