ESRI.ArcGIS.ADF.Web.UI.WebControls
ShowOnlyWhenLayerIsVisible Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > MapTips Class : ShowOnlyWhenLayerIsVisible Property




Whether to display map tips only when the layer is visible.

Syntax

Visual Basic (Declaration) 
<BindableAttribute(True)>
<ResCategoryAttribute("MapTips")>
<DefaultValueAttribute()>
<ResDescriptionAttribute("Whether to limit map tip visibility to when the layer is visible.")>
<PersistenceModeAttribute()>
<NotifyParentPropertyAttribute(True)>
<BrowsableAttribute(True)>
Public Property ShowOnlyWhenLayerIsVisible As Boolean
Visual Basic (Usage)Copy Code
Dim instance As MapTips
Dim value As Boolean
 
instance.ShowOnlyWhenLayerIsVisible = value
 
value = instance.ShowOnlyWhenLayerIsVisible
C# 
[BindableAttribute(true)]
[ResCategoryAttribute("MapTips")]
[DefaultValueAttribute()]
[ResDescriptionAttribute("Whether to limit map tip visibility to when the layer is visible.")]
[PersistenceModeAttribute()]
[NotifyParentPropertyAttribute(true)]
[BrowsableAttribute(true)]
public bool ShowOnlyWhenLayerIsVisible {get; set;}

Return Value

Whether maptips are displayed only with the layer itself.

Remarks

When this property is true (the default), maptips only display when the map layer is also visible. If the layer is not visible because it is turned off or not visible at the current map scale, the maptips will not be displayed.

Set this property to false to display maptips at all times, even if the layer is not visible. Note that if the layer is scale-dependent and the map is displayed at small scales, a setting of false could result in large numbers of maptips displayed, or only a small portion of features within the map extent to have maptips.

See Also

© 2010 All Rights Reserved.