;

LabelExpression Class

  • LabelExpression
  • class Esri::ArcGISRuntime::LabelExpression

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

    Header: #include <LabelExpression>
    Since: Esri::ArcGISRuntime 100.11
    Inherits: Esri::ArcGISRuntime::Object
    Inherited By:

    Esri::ArcGISRuntime::ArcadeLabelExpression, Esri::ArcGISRuntime::SimpleLabelExpression, and Esri::ArcGISRuntime::WebmapLabelExpression

    This class was introduced in Esri::ArcGISRuntime 100.11.

    Public Functions

    virtual ~LabelExpression() override
    QString expression() const
    Esri::ArcGISRuntime::LabelExpressionType labelExpressionType() const
    void setExpression(const QString &expression)

    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.

    Member Function Documentation

    [override virtual] LabelExpression::~LabelExpression()

    Destructor.

    QString LabelExpression::expression() const

    Returns 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.

    See also setExpression().

    Esri::ArcGISRuntime::LabelExpressionType LabelExpression::labelExpressionType() const

    Returns the type of the label expression.

    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 LabelExpressionType.

    void LabelExpression::setExpression(const QString &expression)

    Sets the expression to expression.

    See also expression.

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