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}{signature:
}
Signature
vb.net
vb.net
Public Function CreateAnchor(ByVal percentX As Integer, ByVal percentY As Integer) As Anchor
{signature}
{parameters}
{param:percentX}The X offset from the 
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} {param: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.{param} {returns}An anchor for this cell.{returns} {example}{code:csharp|title=C#}

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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim anch As Anchor = cellB7.CreateAnchor(30, 50)
{code} {example} {scrollbar}
Scrollbar