Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Returns a Position object that represents the location specified by the offset. The Position object can be used similar to a cursor.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns a [Position|Position] object that represents the location specified by the offset. The Position object can be used similar to a cursor.{excerpt}
{signature:C#}
 public virtual Position GetPosition(int offset)
Signature
{signature}{signature:vb.net
vb.net
}
Public Overridable Function GetPosition(ByVal offset As Integer) As Position
Parameters

...

An int representing the relative offset from the start of this Element to get the Position for.

Returns

A Position object that represents the location specified by the offset.

{signature}
{parameters}
{param:offset}An {{int}} representing the relative offset from the start of this Element to get the Position for.{param}
{returns}A {{Position}} object that represents the location specified by the offset.{returns}
{example}{code:csharp|title=C#}
Position oPosition = e.GetPosition();
{code}
{code:vb.net
|title=vb.net
}
Dim oPosition As Position = e.GetPosition(){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle