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


ITOCBuddy2.IsLayerVisibleAtScale Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCBuddy2 Interface > ITOCBuddy2.IsLayerVisibleAtScale Method
ArcGIS Developer Help

ITOCBuddy2.IsLayerVisibleAtScale Method

The TOCControl calls this method to ask the buddy if a layer is visible at the specified scale.

[Visual Basic .NET]
Public Function IsLayerVisibleAtScale ( _
    ByVal pLayer As ILayer, _
    ByVal scale As Double _
) As Boolean
[C#]
public bool IsLayerVisibleAtScale (
    ILayer pLayer,
    double scale
);
[C++]
HRESULT IsLayerVisibleAtScale(
  ILayer* pLayer,
  double scale
);
[C++]
Parameters
pLayer [in]

pLayer is a parameter of type ILayer* scale [in]
scale is a parameter of type double

Product Availability

Available with ArcGIS Engine.

Description

The IsLayerVisibleAtScale method, called by the TOCControl, returns whether the specified layer is visible at the specified scale.

A layer in a globe has IGlobeLayerProperties::MinimumDistance and IGlobeLayerProperties::MaximumDistance properties. The IsLayerVisibleAtScale method allows the GlobeControl to override the ILayer::MinimumScale and ILayer::MaximumScale properties with the  MinimumDistance and MaximumDistance properties to correctly manage the visibility of the layer.

See Also

ITOCBuddy2 Interface