Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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#
Wiki Markup
{description}
{excerpt}Creates an anchor within the specified cell. An anchor represents the position of a floating \(non\-cell data\) object within a spreadsheet.{excerpt}
{signature: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
Parameters
Param
percentXpercentXThe X offset from the
{signature}
{parameters}
{param: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
percentYpercentY

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.

{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#}
Anchor anch = cellB7.CreateAnchor(30, 50);
{code}
{code:vb.net
|title=vb.net
}
Dim anch As Anchor = cellB7.CreateAnchor(30, 50)
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle

...

{code}

{example}
{scrollbar}