[]
Represents a position within a C1Document
public class C1TextPointer : IComparable<C1TextPointer>
Name | Description |
---|---|
C1TextPointer(C1TextElement, int) | Initializes a new C1TextPointer. |
C1TextPointer(C1TextElement, int, LogicalDirection) | Initializes a new C1TextPointer. |
C1TextPointer(C1TextPointer) | Initializes a new C1TextPointer. |
Name | Description |
---|---|
ClosestCaret | Gets the closest position that is a caret position. |
Element | The C1TextElement where the C1TextPointer is positioned. |
IsCaretPosition | Gets whether a position is a valid caret position, that is, a position where an edit caret can be placed. |
IsSentenceEnd | Returns whether the position is just after a sentence. |
IsWordEnd | Returns whether the position is just after a word. |
IsWordStart | Returns whether the position is just before a word. |
LogicalDirection | Gets the logical direction associated with the current position which is used to disambiguate content associated with the current position. |
Offset | The offset inside of Element where the C1TextPointer is positioned. |
PreviousSymbol | Gets the symbol preceding this position (see GetSymbol(LogicalDirection)). |
Symbol | Gets the symbol following this position (see GetSymbol(LogicalDirection)). |
TextOffset | Gets the index of this position in its document text. |
Name | Description |
---|---|
Closest(Func<C1TextPointer, bool>, Func<C1TextPointer, C1TextPointer, int>) | Returns the closest position that satisfies a predicate. |
Closest(Func<C1TextPointer, bool>, Func<C1TextPointer, C1TextPointer, int>, C1TextElement) | Returns the closest position that satisfies a predicate. |
CompareTo(C1TextPointer) | Compares positions of this C1TextPointer with another C1TextPointer. |
Enumerate() | Enumerates the C1TextPointer forward. |
Enumerate(LogicalDirection) | Enumerates the C1TextPointer in the indicated direction. |
Equals(object) | |
GetHashCode() | |
GetOffsetToPosition(C1TextPointer) | Equivalent to GetOffsetToPosition(C1TextPointer, Predicate<Tag>) with null as tagFilter. |
GetOffsetToPosition(C1TextPointer, Predicate<Tag>) | Returns the count of symbols between this C1TextPointer and a second specified C1TextPointer. |
GetPositionAtOffset(int) | Equivalent to GetPositionAtOffset(int, Predicate<Tag>) with null as tagFilter. |
GetPositionAtOffset(int, Predicate<Tag>) | Returns the position at an offset of the current position, optionally not counting some positions. |
GetSymbol(LogicalDirection) | Gets the symbol at the specified direction from this position. |
Split() | Splits this position's C1TextElement at its offset into two elements of the same type with the same style properties. |
Split(bool) | Splits this position's C1TextElement at its offset into two elements of the same type with the same style properties. |