An expression script using the Simple REST language. More...
Header: | #include <SimpleLabelExpression.h> |
Since: | Esri::ArcGISRuntime 100.11 |
Inherits: | Esri::ArcGISRuntime::LabelExpression |
Public Functions
SimpleLabelExpression(QObject *parent = nullptr) | |
SimpleLabelExpression(const QString &simpleExpression, QObject *parent = nullptr) | |
virtual | ~SimpleLabelExpression() override |
Detailed Description
The label Simple expression expects to hold a legal, Simple script and to be read and evaluated by a Simple expression interpreter. An example expression that combines text with a field value is
"State: " CONCAT [State_Name]
Note that quotes are needed around the literal text. See https://developers.arcgis.com/documentation/common-data-types/labeling-objects.htm for full documentation on the <b>labelExpression</b> syntax and functions.
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.
Relevant samples:
- Configure clusters: Add client side feature reduction on a point feature layer that is not pre-configured with clustering.
- Display subtype feature layer: Displays a composite layer of all the subtype values in a feature class.
Member Function Documentation
[explicit]
SimpleLabelExpression::SimpleLabelExpression (QObject *parent = nullptr)
Creates a label Simple expression with an empty expression script.
- parent - The optional parent QObject.
An empty script is a legal Simple expression that will evaluate to an empty string.
[explicit]
SimpleLabelExpression::SimpleLabelExpression (const QString &simpleExpression , QObject *parent = nullptr)
Creates a label Simple expression with a specific Simple script.
- simpleExpression - The Simple expression script string.
- parent - The optional parent QObject.
The expression is expected to be a complete, self-contained Simple expression.
[override virtual]
SimpleLabelExpression::~SimpleLabelExpression ()
Destructor.