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


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

ILabelEngineLayerProperties2.Expression Property

The VBScript or JScript expression that evaluates and formats the label.

[Visual Basic .NET]
Public Property Expression As String
[C#]
public string Expression {get; set;}
[C++]
HRESULT get_Expression(
  BSTR Expression
);
[C++]
HRESULT put_Expression(
  System.String* Expression
);
[C++]
Parameters
Expression [in]

Expression is a parameter of type BSTR Expression [out, retval]
Expression is a parameter of type BSTR*

Product Availability

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

Description

Expression is the expression that evaluates and formats the label (text).  This can be a simple as a single field name enclosed in brackets or as complex as a script written in the language specified by the ExpressionParser.  If the expression is a script it must contain a function call FindLabel and the IsExpressionSimple property should be set to FALSE.

Remarks

This can be based on either VBScript or JavaScript.

See Also

ILabelEngineLayerProperties2 Interface