The C1TextPointer type exposes the following members.

Constructors

Methods

  Name Description
Public method Closest(Func<(Of <<'(C1TextPointer, Boolean>)>>), Func<(Of <<'(C1TextPointer, C1TextPointer, Int32>)>>))
Returns the closest position that satisfies a predicate.
Public method Closest(Func<(Of <<'(C1TextPointer, Boolean>)>>), Func<(Of <<'(C1TextPointer, C1TextPointer, Int32>)>>), C1TextElement)
Returns the closest position that satisfies a predicate.
Public method CompareTo
Compares positions of this C1TextPointer with another C1TextPointer.
Public method Enumerate()()()()
Enumerates the C1TextPointer forward.
Public method Enumerate(LogicalDirection)
Enumerates the C1TextPointer in the indicated direction.
Public method Equals (Overrides Object..::..Equals(Object).)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode (Overrides Object..::..GetHashCode()()()().)
Public method GetOffsetToPosition(C1TextPointer)
Public method GetOffsetToPosition(C1TextPointer, Predicate<(Of <<'(Tag>)>>))
Returns the count of symbols between this C1TextPointer and a second specified C1TextPointer.
Public method GetPositionAtOffset(Int32)
Equivalent to GetPositionAtOffset(Int32, Predicate<(Of <<'(Tag>)>>)) with null as tagFilter.
Public method GetPositionAtOffset(Int32, Predicate<(Of <<'(Tag>)>>))
Returns the position at an offset of the current position, optionally not counting some positions.
Public method GetSymbol
Gets the symbol at the specified direction from this position.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Split()()()()
Splits this position's C1TextElement at its offset into two elements of the same type with the same style properties.
Public method Split(Boolean)
Splits this position's C1TextElement at its offset into two elements of the same type with the same style properties.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Operators

Properties

  Name Description
Public property ClosestCaret
Gets the closest position that is a caret position.
Public property Element
The C1TextElement where the C1TextPointer is positioned.
Public property IsCaretPosition
Gets whether a position is a valid caret position, that is, a position where an edit caret can be placed.
Public property IsWordEnd
Returns whether the position is just after a word.
Public property IsWordStart
Returns whether the position is just before a word.
Public property LogicalDirection
Gets the logical direction associated with the current position which is used to disambiguate content associated with the current position.
Public property Offset
The offset inside of Element where the C1TextPointer is positioned.
Public property PreviousSymbol
Gets the symbol preceding this position (see GetSymbol(LogicalDirection)).
Public property Symbol
Gets the symbol following this position (see GetSymbol(LogicalDirection)).
Public property TextOffset
Gets the index of this position in its document text.

See Also