ArcObjects Library Reference (Carto)  

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(
  BSTR Expression
);
[C++]

Parameters

Expression [out, retval]   Expression is a parameter of type BSTR Expression [in]   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