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


ILabelClassDescription.LabelExpression Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILabelClassDescription Interface > ILabelClassDescription.LabelExpression Property
ArcGIS Developer Help

ILabelClassDescription.LabelExpression Property

The Label Expression.

[Visual Basic .NET]
Public Property LabelExpression As String
[C#]
public string LabelExpression {get; set;}
[C++]
HRESULT get_LabelExpression(
  System.String* LabelExpression
);
[C++]
HRESULT put_LabelExpression(
  BSTR LabelExpression
);
[C++]
Parameters
LabelExpression [out, retval]

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

Product Availability

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

Remarks

Please note that LabelExpression either returns a field name or a simple expression set for a layer. A simple expression could be a concatenation of attribute values from two fields, for example first and last name of a parcel owner. MapServer drops any advanced expression set on the layer in the source map document and returns an empty string.

See Also

ILabelClassDescription Interface