Class AnchorType
Enum that represents type of the anchor of the graphic object to the WorkSheet.
Applies to charts, images, and other graphical objects attached to WorkSheets.
Inheritance
Namespace: IronXL.Drawing
Assembly: IronXL.dll
Syntax
public sealed class AnchorType : Enum
AnchorType sets how a drawing such as an image follows the cells beneath it when those cells are resized or moved, assigned to Position.AnchorType. MoveAndResize keeps the drawing locked to its cells so it shifts and stretches with them, MoveDontResize moves the drawing but holds its size, and DontMoveAndResize pins it in place regardless of cell changes. The worksheet images how-to shows placing and anchoring an image.
position.AnchorType = AnchorType.MoveAndResize;Fields
DontMoveAndResize
Unable to move and resize
Declaration
public const AnchorType DontMoveAndResize
Field Value
| Type | Description |
|---|---|
| AnchorType |
MoveAndResize
Move and resize anchor
Declaration
public const AnchorType MoveAndResize
Field Value
| Type | Description |
|---|---|
| AnchorType |
MoveDontResize
Move but don't resize
Declaration
public const AnchorType MoveDontResize
Field Value
| Type | Description |
|---|---|
| AnchorType |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |