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


ILegendItem2.CanDisplay Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendItem2 Interface > ILegendItem2.CanDisplay Property
ArcGIS Developer Help

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

ILegendItem2 Interface