SymbolAnchor Class

  • 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.h>
    Since: Esri::ArcGISRuntime 100.5

    Public Functions

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

    Detailed Description

    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, Esri::ArcGISRuntime::SymbolAnchorPlacementMode placementMode)

    Contructor that takes x, y, and placementMode properties.

    SymbolAnchor::SymbolAnchor(const Esri::ArcGISRuntime::SymbolAnchor &other)

    Copy constructor from other SymbolAnchor.

    SymbolAnchor::SymbolAnchor(Esri::ArcGISRuntime::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.

    Esri::ArcGISRuntime::SymbolAnchorPlacementMode SymbolAnchor::placementMode() const

    Returns the anchor placement mode of the symbol anchor object.

    The SymbolAnchorPlacementMode determines how this API 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.

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

    Assignment operator from other SymbolAnchor.

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

    Move operator from other SymbolAnchor.

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