Skip To Content ArcGIS for Developers Sign In Dashboard

SymbolAnchor Class

(Esri::ArcGISRuntime::SymbolAnchor)

Implements the anchor of a symbol layer, including placement mode and x and y anchor values. More...

Header: #include <SymbolAnchor>
Since: Esri::ArcGISRuntime 100.5

Public Functions

SymbolAnchor()
SymbolAnchor(double x, double y, SymbolAnchorPlacementMode placementMode)
SymbolAnchor(const SymbolAnchor &other)
SymbolAnchor(SymbolAnchor &&other)
~SymbolAnchor()
bool isEmpty() const
SymbolAnchorPlacementMode placementMode() const
double x() const
double y() const
SymbolAnchor &operator=(const SymbolAnchor &other)
SymbolAnchor &operator=(SymbolAnchor &&other)

Detailed Description

Implements the anchor of a symbol layer, including placement mode and x and y anchor values.

SymbolAnchor contains the properties necessary to define the anchor for a symbol layer. These anchor properties define both the anchor values (x, y) and the placement mode. This object can be passed to MarkerSymbolLayer objects to control marker anchor properties.

Member Function Documentation

SymbolAnchor::SymbolAnchor()

Default constructor.

Warning: This is for convenience only and will construct an empty object.

SymbolAnchor::SymbolAnchor(double x, double y, SymbolAnchorPlacementMode placementMode)

Contructor that takes x, y, and placementMode properties.

SymbolAnchor::SymbolAnchor(const SymbolAnchor &other)

Copy constructor from other SymbolAnchor.

SymbolAnchor::SymbolAnchor(SymbolAnchor &&other)

Move constructor from other SymbolAnchor.

SymbolAnchor::~SymbolAnchor()

Destructor.

bool SymbolAnchor::isEmpty() const

Returns true if this is an empty object.

A default constructed SymbolAnchor is considered empty.

SymbolAnchorPlacementMode SymbolAnchor::placementMode() const

Returns the anchor placement mode of the symbol anchor object.

The SymbolAnchorPlacementMode determines how Runtime interprets the SymbolAnchor anchor values. See the SymbolAnchorPlacementMode documentation for a description of the effects of each mode. The default mode is 'relative.'

double SymbolAnchor::x() const

Returns the x-component of the symbol anchor object.

The x-component of the SymbolAnchor can be any real number. The units of the value depend on the anchor placement mode of the SymbolAnchor. The default value is 0, regardless of placement mode.

double SymbolAnchor::y() const

Returns the y-component of the symbol anchor object.

The y-component of the SymbolAnchor can be any real number. The units of the value depend on the anchor placement mode of the SymbolAnchor. The default value is 0, regardless of placement mode.

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

Assignment operator from other SymbolAnchor.

SymbolAnchor &SymbolAnchor::operator=(SymbolAnchor &&other)

Move operator from other SymbolAnchor.


Feedback on this topic?