This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendGroup Interface > ILegendGroup.Visible Property (ArcObjects .NET 10.5 SDK) |
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
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.