Redigera

Dela via


Color.ToString Method

Definition

Overloads

ToString()

Creates a string representation of the color using the ARGB channels in hex notation.

ToString(IFormatProvider)

Creates a string representation of the color by using the ARGB channels and the specified format provider.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Color struct. For more information, see Color in the UWP API reference.

ToString()

Creates a string representation of the color using the ARGB channels in hex notation.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

The string representation of the color.

Applies to

ToString(IFormatProvider)

Creates a string representation of the color by using the ARGB channels and the specified format provider.

public:
 System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
override this.ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String

Parameters

provider
IFormatProvider

An object that provides culture-specific formatting information.

Returns

The string representation of the color.

Applies to