Method ToString
- Namespace
- DotNetBrowser.Ui
- Assembly
- DotNetBrowser.dll
ToString(string, IFormatProvider)
public string ToString(string format, IFormatProvider formatProvider)
Parameters
format
stringformatProvider
IFormatProvider
Returns
Remarks
The supported format strings are:
- G
General string representation:
Red: <value>, Green: <value>, Blue: <value>, Alpha: <value>
- RGBHexademical representation (with alpha omitted):
RRGGBB
. - RGBAHexademical representation:
RRGGBBAA
.
ToString()
public override string ToString()
Returns
ToString(string)
Returns a string representation of the value of this Color instance, according to the provided format specifier.
public string ToString(string format)
Parameters
format
stringA 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.
Returns
Remarks
The supported format strings are:
- G
General string representation:
Red: <value>, Green: <value>, Blue: <value>, Alpha: <value>
- RGBHexademical representation (with alpha omitted):
RRGGBB
. - RGBAHexademical representation:
RRGGBBAA
.