Share via


ColorHelper.ToDisplayName(Color) Method

Definition

Retrieves the display name of the specified color.

public:
 static Platform::String ^ ToDisplayName(Color color);
 static winrt::hstring ToDisplayName(Color const& color);
public static string ToDisplayName(Color color);
function toDisplayName(color)
Public Shared Function ToDisplayName (color As Color) As String

Parameters

color
Color

The color to get the name for.

Returns

String

Platform::String

winrt::hstring

The localized display name of the color.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to