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

IFeatureLayer.DisplayField Property (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 > IFeatureLayer.DisplayField Property
ArcGIS Developer Help

IFeatureLayer.DisplayField Property

Primary display field.

[Visual Basic .NET]
Public Property DisplayField As String
public string DisplayField {get; set;}
HRESULT get_DisplayField(
  System.String* FieldName
HRESULT put_DisplayField(
  BSTR FieldName
FieldName [out, retval]

FieldName is a parameter of type BSTR* FieldName [in]
FieldName is a parameter of type BSTR

Product Availability

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


The name of the layer's primary display field.


Usually this field name contains the string "name", or is the first string field found in the layer's attributes. This field is used to show map tips for the layer. The value of this property must match the name of one of the fields in the layer's FeatureClass.

See Also

IFeatureLayer Interface

.NET Samples

Displaying MapTips in the MapControl ArcGIS Network Analyst extension Engine application