Table of Contents

Method ToString

Namespace
DotNetBrowser.Ui
Assembly
DotNetBrowser.dll

ToString(string, IFormatProvider)

public string ToString(string format, IFormatProvider formatProvider)

Parameters

format string
formatProvider IFormatProvider

Returns

string

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

string

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 string

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.

Returns

string

The 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>
  • RGBHexademical representation (with alpha omitted): RRGGBB.
  • RGBAHexademical representation: RRGGBBAA.