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
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:vb.net}
Public Function CreateAnchor(ByVal percentX As Integer, ByVal percentY As Integer) As Anchor
{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}
{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){code}

{example}
{scrollbar}