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


ILegendItem3.CanDisplay Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

ILegendItem3.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,
  Boolean* result
);
[C++]

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

Product Availability

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

See Also

ILegendItem3 Interface