This document is archived and information here might be outdated.  Recommended version.


ILegendGroup.Visible Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILegendGroup.Visible Property

Indicates if the group is displayed.

[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.

Remarks

This property indicates whether or not a layer's entry in the table of contents is expanded or collapsed. If a layer has only one legend group, then if Visible=True, then the layer is expanded. If a layer has more than one legend group, then the rule is that if any of the the layer's legend groups are visible, then the layer's entry in the table of contents is expanded.

See Also

ILegendGroup Interface