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


ILegendItem.CanDisplay Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILegendItem.CanDisplay Property

Indicates if the style is compatible with the specified layer.

[Visual Basic .NET]
Public Function get_CanDisplay ( _
    ByVal Layer As ILayer _
) As Boolean
[C#]
public bool get_CanDisplay (
    ILayer Layer
);
[C++]
HRESULT get_CanDisplay(
  ILayer* Layer,
  VARIANT_BOOL* result
);
[C++]

Parameters Layer [in]
Layer is a parameter of type ILayer result [out, retval] result is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

ILegendItem Interface