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


IFeatureRenderer.CanRender Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

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,
  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

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