This document is archived and information here might be outdated.  Recommended version.


IDynamicGlyph.SetAnchor Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDynamicGlyph Interface > IDynamicGlyph.SetAnchor Method
ArcGIS Developer Help

IDynamicGlyph.SetAnchor Method

Indicates the origin of the glyph from the the bottom left.

[Visual Basic .NET]
Public Sub SetAnchor ( _
    ByVal xAnchor As Single, _
    ByVal yAnchor As Single _
)
[C#]
public void SetAnchor (
    float xAnchor,
    float yAnchor
);
[C++]
HRESULT SetAnchor(
  float xAnchor,
  float yAnchor
);
[C++]
Parameters
xAnchor [in]

xAnchor is a parameter of type single yAnchor [in]
yAnchor is a parameter of type single

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The anchor is an offset value, relative to the glyph’s lower left corner, that defines the anchor point (hot point) of the glyph. For example, for a glyph that represents an arrow, use the offset from the lower left glyph to the arrow’s base point as the anchor of the glyph.

The X values grow towards the right, and the Y values grow towards the top.

See Also

IDynamicGlyph Interface

.NET Samples

Dynamic biking