ITextImage Interface

Definition

Provides read access to an immutable sequence of Unicode characters. The first character in the sequence has index zero.

public interface class ITextImage
public interface ITextImage
type ITextImage = interface
Public Interface ITextImage

Properties

Item[Int32]

Gets a single character at the specified position.

Length

Gets the number of UTF-16 characters contained in the image.

LineCount

Gets the positive number of lines in the image. An image whose Length is zero is considered to have one line.

Version

The ITextImageVersion associated with this ITextImage.

Methods

CopyTo(Int32, Char[], Int32, Int32)

Copies a range of text to a character array.

GetLineFromLineNumber(Int32)

Gets an TextImageLine for the given line number.

GetLineFromPosition(Int32)

Gets an TextImageLine for a line at the given position.

GetLineNumberFromPosition(Int32)

Gets the number of the line that contains the character at the specified position.

GetSubText(Span)

Create a new ITextImage that is a clone of a subspan of this ITextImage.

GetText(Span)

Gets text from the image starting at the beginning of the span and having length equal to the length of the span.

ToCharArray(Int32, Int32)

Converts a range of text to a character array.

Write(TextWriter, Span)

Writes a substring of the contents of the image.

Extension Methods

GetSubText(ITextImage, Int32, Int32)

Create a new ITextImage that is a clone of a subspan of this ITextImage.

GetText(ITextImage)

Gets all the text in the image.

GetText(ITextImage, Int32, Int32)

Gets text from the image starting at startIndex and having length equal to length.

Write(ITextImage, TextWriter)

Writes the contents of the image.

Applies to