This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCBuddy Interface > ITOCBuddy.GetScale Method (ArcObjects .NET 10.5 SDK) |
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
The GetScale method returns scale of the supplied Map or Scene. If the scale is unknown the GetScale method returns 0.0.