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

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#
 public virtual Position GetPosition(int offset)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Overridable Function GetPosition(ByVal offset As Integer) As Position
{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#}
Parameters
Param
offset
offset

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.

Example
Code Block
csharp
csharp
titleC#

Position oPosition = e.GetPosition();
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim oPosition As Position = e.GetPosition()
{code} {example}