Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Creates an anchor within the specified cell. An anchor represents the position of a floating (non-cell data) object within a spreadsheet.

Signature
C#
C#
 public Anchor CreateAnchor(int percentX, int percentY)
Signature
vb.net
vb.net
Public Function CreateAnchor(ByVal percentX As Integer, ByVal percentY As Integer) As Anchor
Parameters
Param
percentX
percentX

The X offset from the cell's left side as a percentage of the cell's width. This value must be between 0 and 100.

Param
percentY
percentY

The Y offset from the top of the cell as a percentage of the cell's height. This value must be between 0 and 100.

Returns

An anchor for this cell.

Example
Code Block
csharp
csharp
titleC#
Anchor anch = cellB7.CreateAnchor(30, 50);
Code Block
vb.net
vb.net
titlevb.net
Dim anch As Anchor = cellB7.CreateAnchor(30, 50)
Scrollbar