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


IFeatureRenderer.CanRender Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFeatureRenderer Interface > IFeatureRenderer.CanRender Method
ArcGIS Developer Help

IFeatureRenderer.CanRender Method

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
);
[C++]
Parameters
featClass [in]

featClass is a parameter of type IFeatureClass* Display [in]
Display is a parameter of type IDisplay*

Product Availability

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

Remarks

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.

See Also

IFeatureRenderer Interface