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 > ILegendItem Interface > ILegendItem.CanDisplay Property (ArcObjects .NET 10.5 SDK) |
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