ArcObjects Library Reference (Carto)  

ILayer.Visible Property

Indicates if the layer is currently visible.

[Visual Basic .NET]
Public Property Visible As Boolean
[C#]
public bool Visible {get; set;}
[C++]
HRESULT get_Visible(
  VARIANT_BOOL* Visible
);
[C++]
HRESULT put_Visible(
  VARIANT_BOOL Visible
);
[C++]

Parameters

Visible [out, retval]   Visible is a parameter of type VARIANT_BOOL Visible [in]   Visible is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ILayer Interface

.NET Snippets

Toggle Visibility Of Composite Layer |

.NET Samples

Add a custom menu created in .NET to ArcGIS Desktop (Code Files: AddShapefile) | Buffer snap agent (Code Files: EditingForm) | Custom reshape polyline edit task (Code Files: EditingForm) | Custom vertex editing commands (Code Files: EditingForm) | Cut polygons without selection edit task (Code Files: EditingForm) | Edit event listener (Code Files: EditingForm) | Layer property page and property sheet (Code Files: LayerVisibilityPage) | Managing snap agents (Code Files: EditingForm) | Using the traversal result to select source features (Code Files: SelectFeaturesTool) |

.NET Related Topics

Adding a custom menu created in .NET to ArcGIS Desktop |