C# 클래스 WebApplications.Utilities.Formatting.ColorHelper

파일 보기 프로젝트 열기: webappsuk/CoreLibraries

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