Color.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om