Click or drag to resize

ColorToString Method (String, IFormatProvider)

Formats the value of the current instance using the specified format.

Namespace:  DotNetBrowser.Ui
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.3
Syntax
C#
public string ToString(
	string format,
	IFormatProvider formatProvider
)

Parameters

format
Type: SystemString
The format to use. -or- A null reference ( in Visual Basic) to use the default format defined for the type of the IFormattable implementation.
formatProvider
Type: SystemIFormatProvider
The provider to use to format the value. -or- A null reference ( in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

Return Value

Type: String
The value of the current instance in the specified format.

Implements

IFormattableToString(String, IFormatProvider)
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