Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: IEnumerable<ConsoleColoredString> Split(string[], int?, StringSplitOptions)

Declaration

public IEnumerable<ConsoleColoredString> Split(
    string[] separator,
    int? count = null,
    StringSplitOptions options = None
)

Summary

Returns a string array that contains the substrings in this ConsoleColoredString that are delimited by elements of a specified string array. Parameters specify the maximum number of substrings to return and whether to return empty array elements.

Parameters

string[]separator An array of strings that delimit the substrings in this ConsoleColoredString, an empty array that contains no delimiters, or null.
int?count The maximum number of substrings to return, or null to return all.
StringSplitOptionsoptions Specify StringSplitOptions.RemoveEmptyEntries to omit empty array elements from the array returned, or StringSplitOptions.None to include empty array elements in the array returned.

Returns

A collection whose elements contain the substrings in this ConsoleColoredString that are delimited by one or more strings in separator.