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


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

IFeatureLayer Interface

Provides access to members that control common aspects of a feature layer. Note: the IFeatureLayer interface has been superseded by IFeatureLayer2. Please consider using the more recent version.

Product Availability

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

Description

Provides access to the properties and methods of a layer based on vector geographic data, which is typically a geodatabase, shapefile, or coverage feature class.

Members

Name Description
Read-only property AreaOfInterest The default area of interest for the layer.
Read/write property Cached Indicates if the layer needs its own display cache.
Read/write property DataSourceType Data source type.
Read/write property DisplayField Primary display field.
Method Draw Draws the layer to the specified display for the given draw phase.
Read/write property FeatureClass The layer's feature class.
Read/write property MaximumScale Maximum scale (representative fraction) at which the layer will display.
Read/write property MinimumScale Minimum scale (representative fraction) at which the layer will display.
Read/write property Name Layer name.
Read/write property ScaleSymbols Indicates if symbols are scaled for the layer.
Method Search Creates a cursor based upon the search criteria.
Read/write property Selectable Indicates if layer is selectable.
Read/write property ShowTips Indicates if the layer shows map tips.
Write-only property SpatialReference Spatial reference for the layer.
Read-only property SupportedDrawPhases Supported draw phases.
Read-only property TipText Map tip text at the specified location.
Read-only property Valid Indicates if the layer is currently valid.
Read/write property Visible Indicates if the layer is currently visible.

Inherited Interfaces

Interfaces Description
ILayer Provides access to members that work with all layers.

Classes that implement IFeatureLayer

Classes Description
CadAnnotationLayer An Esri Cad annotation layer.
CadastralFabricSubLayer Cadastral Fabric Feature Layer Object.
CadFeatureLayer Esri CAD Feature Layer class.
CoverageAnnotationLayer An Esri coverage annotation layer.
DimensionLayer A collection of properties for a dimension layer.
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
FeatureLayer A collection of features and their visual representation.
GdbRasterCatalogLayer Geodabase RasterCatalog source and display options.
ImageServerLayer Image server layer source and display options.
IMSSubFeatureLayer A collection of IMS features as a sublayer of an IMSMapLayer.
TemporalFeatureLayer (esriTrackingAnalyst) Defines the coclass IDL parameters and attributes of the TemporalFeatureLayer COM object.

Remarks

This interface has properties that specify the feature class of the layer, the data source type, the primary display field, whether or not layer symbols scale based on the map's reference scale, and whether or not the layer is selectable.

There is also a method Search for performing a search on the layer. This method returns a cursor of features from the layer that meet a given search criteria. If there is a definition query set on the layer, Search will work on the subset of the features in the layer that meet the definition criteria. However, the Search method will not work on joined fields. If the feature layer has any joins, use the IGeoFeatureLayer::SearchDisplayFeatures method instead.

IGeoFeatureLayer provides access to all properties and methods of IFeatureLayer plus additional properties to access a layer's feature renderer and labeling properties. Fewer layer types support IGeoFeatureLayer compared to IFeatureLayer.

See Also

ILayer Interface

.NET Samples

Time Series Graph tool add-in Applying a time offset to a time-aware feature layer Create camera flyby from path Custom scene navigation commands Custom upstream trace task Buffer snap agent Buffer snap agent Cut polygons without selection edit task Edit event listener Managing snap agents Custom reshape polyline edit task Custom reshape polyline edit task Tabbed feature inspector Tabbed feature inspector Editing using a custom form Editing using a custom form Custom vertex editing commands 3D dynamic element tracking Create a geoprocessing tool to buffer a layer and retrieve messages Executing geoprocessing tools in the background Make a custom time slider Displaying MapTips in the MapControl Add a traversal result to the map ArcGIS Network Analyst extension Engine application ArcGIS Network Analyst extension Engine application Points along line construction tool Utility wizard for basic schematic datasets configuration Custom selection extension Custom selection extension Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects Set the time extents for a layer then render the layer Simple point plug-in data source Retrieve a color ramp from the SymbologyControl Change layer rendering using the SymbologyControl Adding a real-time feed to ArcMap Displaying a TOCControl context menu ViperPin tool