This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFeatureRenderer Interface > IFeatureRenderer.CanRender Method (ArcObjects .NET 10.5 SDK) |
Indicates if the specified feature class can be rendered on the given display.
[Visual Basic .NET] Public Function CanRender ( _ ByVal featClass As IFeatureClass, _ ByVal Display As IDisplay _ ) As Boolean
[C#] public bool CanRender ( IFeatureClass featClass, IDisplay Display );
[C++]
HRESULT CanRender(
IFeatureClass* featClass,
IDisplay* Display,
VARIANT_BOOL* result
);
[C++]
Parameters featClass [in]
featClass is a parameter of type IFeatureClass Display [in]
Display is a parameter of type IDisplay result [out, retval] result is a parameter of type VARIANT_BOOL
If the renderer is not applicable to a feature layer, then it can return False in response to a CanRender method. For example, the dot-density renderer is only applicable to polygon feature layers and returns False in response to other feature layers.