ColorToString Method (String) |
Returns a string representation of the value of this
Color instance, according to the provided
format specifier.
Namespace:
DotNetBrowser.Ui
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.24.2
Syntax public string ToString(
string format
)
Parameters
- format
- Type: SystemString
A single format specifier that indicates how to format the value of this Color. The format
parameter can be "G", "F", "RGB", or "RGBA". If format is null or an empty string (""), "G" is used.
Return Value
Type:
StringThe value of this
Color, represented in the specified format.
Remarks The supported format strings are:
- G -
General string representation:
Red: <value>, Green: <value>, Blue: <value>, Alpha: <value>
- RGB - Hexademical representation (with alpha omitted): RRGGBB.
- RGBA - Hexademical representation: RRGGBBAA.
See Also