[This is preliminary documentation and is subject to change.]

The Color type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
GetName(Char)
Gets color name for hex color code.
GetName(Int32)
Gets color name for a numeric color code.
GetName(String)
Gets color name for a string representation of a color.
IsValidColorCode(Char)
Checks whether a color code is valid (checks if it's hexadecimal char).
Parse(Char)
Parses a string to a format readable by Minecraft clients. an accept color names and color codes (with or without the ampersand).
Parse(String)
Parses a string to a format readable by Minecraft clients. an accept color names and color codes (with or without the ampersand).
ReplacePercentCodes(String)
Substitutes percent color codes with equivalent ampersand color codes.
ReplacePercentCodes(StringBuilder)
Substitutes percent color codes with equivalent ampersand color codes.
StripColors(String)
Strips all ampersand color codes and doubled-up ampersands.
SubstituteSpecialColors(String)
Substitutes all special ampersand color codes (like Color.Sys) with the assigned Minecraft colors (like Color.Yellow).
SubstituteSpecialColors(StringBuilder)
Substitutes all special ampersand color codes (like Color.Sys) with the assigned Minecraft colors (like Color.Yellow).
ToIRCColorCodes(String)
ToIRCColorCodes(StringBuilder)

See Also