This document is archived and information here might be outdated.  Recommended version.


ITOCBuddy.GetScale Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

ITOCBuddy.GetScale Method

Returns the scale of the supplied BasicMap, this allows for objects that do not support IMap.

[Visual Basic .NET]
Public Function GetScale ( _
    ByVal pBasicMap As IBasicMap _
) As Double
[C#]
public double GetScale (
    IBasicMap pBasicMap
);
[C++]
HRESULT GetScale(
  IBasicMap* pBasicMap,
  double* dScale
);
[C++]

Parameters pBasicMap [in]
pBasicMap is a parameter of type IBasicMap dScale [out, retval] dScale is a parameter of type double

Product Availability

Available with ArcGIS Engine.

Description

The GetScale method returns scale of the supplied Map or Scene. If the scale is unknown the GetScale method returns 0.0.

See Also

ITOCBuddy Interface