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
|
...
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 |
title | C# |
---|
{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 Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim oPosition As Position = e.GetPosition(){code}
{example}