Layer visibility editing state.
[Visual Basic .NET] Public Property LayerVisibilityEdit As esriTOCControlEdit
[C#] public esriTOCControlEdit LayerVisibilityEdit {get; set;}
[C++]
HRESULT get_LayerVisibilityEdit(
esriTOCControlEdit* LayerVisibilityEdit
);
[C++]
HRESULT put_LayerVisibilityEdit(
esriTOCControlEdit LayerVisibilityEdit
);
[C++]Parameters
LayerVisibilityEdit [out, retval]LayerVisibilityEdit is a parameter of type esriTOCControlEdit
LayerVisibilityEdit [in]LayerVisibilityEdit is a parameter of type esriTOCControlEdit
Product Availability
Available with ArcGIS Engine.
Description
Use LabelVisibilityEdit to determine whether layer visibility is controlled programmatically or through user interaction with the check boxes. By default LayerVisibility is automatic.
Set the property to automatic to toggle layer visibility through user interaction with the check boxes.
Set the property to manual to toggle layer visibility programmatcially.
Remarks
If a layer has MinimumScale and MaximumScale thresholds set, its check box will become disabled when the layer is not displayed.
[C#]
axTOCControl1.ActiveView.FocusMap.get_Layer(0).Visible = false;
axMapControl1.Refresh(esriViewDrawPhase.esriViewGeography,null,null);
[Visual Basic .NET]
AxTOCControl1.ActiveView.FocusMap.Layer(0).Visible = False
AxMapControl1.Refresh(esriViewDrawPhase.esriViewGeography)