ArcGIS Runtime SDK for iOS: AGSSymbolAnchor.h File Reference
ArcGIS Runtime SDK for iOS  100.15
AGSSymbolAnchor.h File Reference

Go to the source code of this file.

Typedefs

typedef struct AGSSymbolAnchor AGSSymbolAnchor
 The anchor of a symbol layer, including placement mode and x, y anchor values. More...
 

Enumerations

enum  AGSSymbolAnchorPlacementMode { AGSSymbolAnchorPlacementModeRelative = 0 , AGSSymbolAnchorPlacementModeAbsolute = 1 }
 

Functions

static AGSSymbolAnchor AGSSymbolAnchorMake (double x, double y, AGSSymbolAnchorPlacementMode placementMode)
 

Typedef Documentation

◆ AGSSymbolAnchor

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

This struct represents the properties necessary to define the anchor for a symbol layer. These anchor properties define both the anchor values and the placement mode. They can be used with AGSMarkerSymbolLayer objects to control marker anchor properties.

Since
100.5

Enumeration Type Documentation

◆ AGSSymbolAnchorPlacementMode

The list of possible symbol anchor placement modes.

Since
100.5
Enumerator
AGSSymbolAnchorPlacementModeRelative 

Specifies anchor with relative values. This mode causes anchor values to be interpreted as percentages, relative to the origin of the symbol. Percentage values must be expressed as fractions between [0, 1]. A 50% (.5) x-anchor, for example, moves the symbol layer anchor in the positive-x direction an amount equal to 50% of the symbol layer size.

AGSSymbolAnchorPlacementModeAbsolute 

Specifies anchor with absolute values. This mode causes anchor values to be interpreted as absolute units (DIPs) rather than percentages.

Function Documentation

◆ AGSSymbolAnchorMake()

static AGSSymbolAnchor AGSSymbolAnchorMake ( double  x,
double  y,
AGSSymbolAnchorPlacementMode  placementMode 
)
inlinestatic

Creates a symbol anchor.

Parameters
xThe x-component of the anchor point. It can be any real number. The units of the value depend on the anchor's placement mode. The default value is 0, regardless of placement mode.
yThe y-component of the anchor point. It can be any real number. The units of the value depend on the anchor's placement mode. The default value is 0, regardless of placement mode.
placementModeThe anchor placement mode to use for the anchor values. The default value is AGSSymbolAnchorPlacementModeRelative
Since
100.5