...
Description |
---|
Excerpt |
---|
This class is used to represent a cursor position in the document. It sits between two characters and its position is represented as the index of the character it sits behind. A Position object can be obtained from an Element. |
Signature | ||||
---|---|---|---|---|
| ||||
public sealed class Position
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public NotInheritable Class Position
{signature}
{remarks}You cannot create a new {{Position}} object using the {{new}} keyword. You must get a {{Position}} object using the [GetPosition()|Element.GetPosition(Int32)] method of the {{Element}} class \(or the [Document|Document] class, which inherits from {{Element}} \). This method takes a parameter that represents the relative offset from the start of this Element to point at which to get the Position.
The following sample gets a {{Position}} object from the start of a {{Document}}.
{remarks}
{example}{code:csharp|title=C#} |
Remarks |
---|
You cannot create a new The following sample gets a |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Properties |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
Methods |
---|
Name | Description | ||||
---|---|---|---|---|---|
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
| |||
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...