IText
Description
- Derived from
- Extended by
-
ICodeInput
TextBase abstract
Base interface for classes that provide access to a text value with one or more lines (the empty text is represented with a single empty line).
An implementation may wrap a sequential character stream and provide incremental reading by fetching only the required data from the stream when using these members:
Using these members, on the other hand, will cause the whole data stream to be read:
The IEnumerable.GetEnumerator method will iterate through the text lines, by delegating to LineRange and CharsAt.
- See also
Public / Attributes
Extensions
IndexAt
2 overloads
Returns the zero-based character index at the given text position, by delegating to IText.LineRange.
Returns the zero-based character index at the given text position, by delegating to IText.LineRange.
PositionAt
2 overloads
Returns the text position at the given character index, by delegating to IText.LineIndex and IText.LineRange.
Returns the text position at the given row/column indices.
ToString
Returns this text as a concatenated string value, using the given LineEnding, by delegating to IText.LineCount and LineAt.