ESRI.ArcGIS.ADF.IMS
IsVisibleAtScale Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Layer Class : IsVisibleAtScale Property




Gets a value that determines if the Layer is visible at the scale of the view.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property IsVisibleAtScale As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Layer
Dim value As Boolean
 
value = instance.IsVisibleAtScale
C# 
public virtual bool IsVisibleAtScale {get;}

Example

For an example, see MaxScale .

Remarks

This read-only property shows whether the layer will display in a map drawn at the current map scale. It does not check whether the layer's Visible property is true.

If no MaxScale or MinScale properties are set for the layer, then this property always returns true.

The current scale is determined by a combination of the view's Extent, the size of the map (Height and Width in the view's ImageDescriptor), and the DPI of the map (ImageDescriptor.Dpi). This is compared to the MinScale and MaxScale properties. If the current scale is between the MinScale and the MaxScale, this property is true. Otherwise it is false.

It may be necessary to set the MapView's Extent before this property yields a correct value.

See Also

© 2010 All Rights Reserved.