This object represents a legend item. More...
Header | #include <Legend |
Since | Esri |
Inherits | Esri |
Public Functions
virtual | ~ |
Q | name() const |
Esri | symbol( |
(since Esri bool | operator!=(const Esri |
(since Esri bool | operator==(const Esri |
Detailed Description
You can get this object from the LayerContent::isAutoFetchLegendInfos method of objects that implement the LayerContent interface (e.g. ArcGISSublayer::isAutoFetchLegendInfos).
Relevant samples:
- Build a legend: Build a legend for all the operational layers in the map.
See also LayerContent and LayerContent::isAutoFetchLegendInfos.
Member Function Documentation
[override virtual noexcept]
LegendInfo::~LegendInfo ()
Destructor.
QString LegendInfo::name() const
Gets the name of the legend.
Esri::ArcGISRuntime::Symbol *LegendInfo::symbol(QObject *parent = nullptr) const
Gets the symbol of the legend with an optional parent.
[since Esri::ArcGISRuntime 200.2]
bool LegendInfo::operator!=(const Esri::ArcGISRuntime::LegendInfo &other) const
Inequality operator. Returns true
if this object and other are not equal.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also LegendInfo::operator==.
[since Esri::ArcGISRuntime 200.1]
bool LegendInfo::operator==(const Esri::ArcGISRuntime::LegendInfo &other) const
Returns a bool that tests if this object is equal to a second LegendInfo object.
- other - The 2nd legend item to check to see if equal to the 1st legend item.
This function was introduced in Esri::ArcGISRuntime 200.1.