LabelExpression QML Type

  • Esri.ArcGISRuntime
  • LabelExpression
  • Abstract base class for the different types of expressions that can be used to create label text. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.11


    Inherited By:

    ArcadeLabelExpression, SimpleLabelExpression, and WebmapLabelExpression




    • LabelExpression clone()

    Detailed Description

    Users can read the expression script using the expression property. To specify an expression script, users create an object of type ArcadeLabelExpression, SimpleLabelExpression or WebmapLabelExpression with the required expression script and assign it to the label expression object.

    Note: You cannot declare or create a component of this type in QML code.

    Property Documentation

    expression : string

    The label expression script string.

    The expression is expected to be a complete, self-contained label expression in the language specified by the label expression subclass object.

    Note: If the expression attempts to use attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.

    [read-only] objectType : Enums.LabelExpressionType

    The type of the label expression (read-only).

    The type specifies which language interpreter should be used to read and evaluate the expression. The object type is determined by which concrete subclass has been set into the label expression property.

    See also Enums.LabelExpressionType.

    Signal Documentation


    Emitted when the expression property changes.

    Note: The corresponding handler is onExpressionChanged.

    Method Documentation

    [since Esri.ArcGISRuntime 200.1] LabelExpression clone()

    Clones the LabelExpression.

    This method was introduced in Esri.ArcGISRuntime 200.1.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.