This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCControl Interface > ITOCControl.LayerVisibilityEdit Property (ArcObjects .NET 10.5 SDK) |
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
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.
If a layer has MinimumScale and MaximumScale thresholds set, its check box will become disabled when the layer is not displayed.
axTOCControl1.ActiveView.FocusMap.get_Layer(0).Visible=false;
axMapControl1.Refresh(esriViewDrawPhase.esriViewGeography,null,null);
AxTOCControl1.ActiveView.FocusMap.Layer(0).Visible=False
AxMapControl1.Refresh(esriViewDrawPhase.esriViewGeography)