C# Класс WebApplications.Utilities.Formatting.ColorHelper

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetName string

Открытые методы

Метод Описание
GetColor ( [ name ) : Optional

Gets the color corresponding to the name; otherwise returns Optional{Color}.Unassigned.

RemoveName ( [ name ) : Optional

Removes the custom color name.

SetName ( this color, [ name ) : void

Sets a custom name for the color.

ToColor ( this color ) : Color

Gets the Color of a ConsoleColor.

ToConsoleColor ( this color ) : ConsoleColor

Converts a Color to the nearest ConsoleColor.

Приватные методы

Метод Описание
GetName ( this color ) : string

Описание методов

GetColor() публичный статический Метод

Gets the color corresponding to the name; otherwise returns Optional{Color}.Unassigned.
public static GetColor ( [ name ) : Optional
name [ The name.
Результат Optional

RemoveName() публичный статический Метод

Removes the custom color name.
public static RemoveName ( [ name ) : Optional
name [ The name.
Результат Optional

SetName() публичный статический Метод

Sets a custom name for the color.
public static SetName ( this color, [ name ) : void
color this The color.
name [ The name.
Результат void

ToColor() публичный статический Метод

Gets the Color of a ConsoleColor.
public static ToColor ( this color ) : Color
color this The color.
Результат Color

ToConsoleColor() публичный статический Метод

Converts a Color to the nearest ConsoleColor.
public static ToConsoleColor ( this color ) : ConsoleColor
color this The color.
Результат ConsoleColor