This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendItem2 Interface > ILegendItem2.CanDisplay Property (ArcObjects .NET 10.4 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