Udostępnij za pośrednictwem


ITextImage.ToCharArray(Int32, Int32) Method

Definition

Converts a range of text to a character array.

public:
 cli::array <char> ^ ToCharArray(int startIndex, int length);
public char[] ToCharArray (int startIndex, int length);
abstract member ToCharArray : int * int -> char[]
Public Function ToCharArray (startIndex As Integer, length As Integer) As Char()

Parameters

startIndex
Int32

The starting index of the range of text.

length
Int32

The length of the text.

Returns

Char[]

The array of characters starting at startIndex in the underlying ITextBuffer and extend to its end.

Exceptions

startIndex is less than zero or greater than the length of the image, or length is less than zero, or startIndex plus length is greater than the length of the image.

Applies to