This document is archived and information here might be outdated. Recommended version. |
Layer visibility editing state.
[Visual Basic .NET] Public Property LayerVisibilityEdit As esriTOCControlEdit
[C#] public esriTOCControlEdit LayerVisibilityEdit {get; set;}
[C++]
HRESULT get_LayerVisibilityEdit(
void
);
[C++]
HRESULT put_LayerVisibilityEdit(
);
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)