Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString Substring(int)

Declaration

public ConsoleColoredString Substring(
    int startIndex
)

Summary

Retrieves a substring from this instance. The substring starts at a specified character position.

Parameters

intstartIndex The zero-based starting character position of a substring in this instance.

Returns

A ConsoleColoredString object equivalent to the substring that begins at startIndex in this instance.

Exceptions

  • System.ArgumentOutOfRangeException
    startIndex is less than zero or greater than the length of this instance.