This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFeatureRenderer Interface > IFeatureRenderer.PrepareFilter Method (ArcObjects .NET 10.4 SDK) |
Prepares the query filter for the rendering process.
[Visual Basic .NET] Public Sub PrepareFilter ( _ ByVal fc As IFeatureClass, _ ByVal queryFilter As IQueryFilter _ )
[C#] public void PrepareFilter ( IFeatureClass fc, IQueryFilter queryFilter );
[C++]
HRESULT PrepareFilter(
IFeatureClass* fc,
IQueryFilter* queryFilter
);
[C++]
Parameters fc [in]
fc is a parameter of type IFeatureClass queryFilter [in]
queryFilter is a parameter of type IQueryFilter
This method is called prior to the Draw method and gives the renderer a chance to adjust the query filter to incorporate extra constraints. For example, if a particular field is required for the renderer, it would add this field to the filter to ensure it is accessible during the Draw method.