Skip To Content ArcGIS for Developers Sign In Dashboard

LabelingInfo Class

(Esri::ArcGISRuntime::LabelingInfo)

Labeling information about a sublayer of a map service or feature service. More...

Header: #include <LabelingInfo>
Since: Esri::ArcGISRuntime 100.0

Public Functions

LabelingInfo()
LabelingInfo(const LabelingInfo &other)
LabelingInfo(LabelingInfo &&other)
~LabelingInfo()
bool isEmpty() const
bool isUseCodedValues() const
QString labelExpression() const
LabelingPlacement labelPlacement() const
double maxScale() const
double minScale() const
TextSymbol *symbol(QObject *parent = nullptr) const
QString where() const
LabelingInfo &operator=(const LabelingInfo &other)
LabelingInfo &operator=(LabelingInfo &&other)

Detailed Description

Labeling information about a sublayer of a map service or feature service.

Member Function Documentation

LabelingInfo::LabelingInfo()

Default constructor. Creates an empty LabelingInfo.

LabelingInfo::LabelingInfo(const LabelingInfo &other)

Copy constructor from other LabelingInfo.

LabelingInfo::LabelingInfo(LabelingInfo &&other)

Move constructor from other LabelingInfo.

LabelingInfo::~LabelingInfo()

Destructor.

bool LabelingInfo::isEmpty() const

Returns true if this LabelingInfo is empty.

bool LabelingInfo::isUseCodedValues() const

Returns true if the labeling should use coded values.

QString LabelingInfo::labelExpression() const

Returns the expression that specifies what text is drawn in the label.

LabelingPlacement LabelingInfo::labelPlacement() const

Returns the placement of the label.

double LabelingInfo::maxScale() const

Returns the maximum scale that this label class should be used.

double LabelingInfo::minScale() const

Returns the minimum scale that this label class should be used.

TextSymbol *LabelingInfo::symbol(QObject *parent = nullptr) const

Returns the symbol that is used for this label class.

Note, parent is optional. If no parent is specified then the source from which this LabelingInfo comes from (ArcGISFeatureLayerInfo) takes ownership of the returned symbol.

QString LabelingInfo::where() const

Returns the where claused used to determine which labels appear.

Only features that satisfy the where clause will display labels.

LabelingInfo &LabelingInfo::operator=(const LabelingInfo &other)

Assignment operator from other LabelingInfo.

LabelingInfo &LabelingInfo::operator=(LabelingInfo &&other)

Move operator from other LabelingInfo.


Feedback on this topic?