![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
IsVisibleAtScale Property | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Layer Class : IsVisibleAtScale Property |
Visual Basic (Declaration) | |
---|---|
Public Overridable ReadOnly Property IsVisibleAtScale As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Layer Dim value As Boolean value = instance.IsVisibleAtScale |
C# | |
---|---|
public virtual bool IsVisibleAtScale {get;} |
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family