ArcObjects Library Reference (System)  

ITimeDuration.Scale Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

See Also

ITimeDuration Interface

.NET Samples

Make a custom time slider (Code Files: CustomTimeSliderButton) |