ITextSnapshot.ToCharArray(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a range of text to a character array.
public:
cli::array <char> ^ ToCharArray(int startIndex, int length);
public:
Platform::Array <char16> ^ ToCharArray(int startIndex, int length);
std::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
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 snapshot, or
length
is less than zero, or startIndex
plus length
is greater than the length of the snapshot.