Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.62 KB

colorhelper.md

File metadata and controls

29 lines (20 loc) · 1.62 KB
-api-id -api-type
T:Windows.UI.ColorHelper
winrt class

Windows.UI.ColorHelper

-description

Provides static helper methods for processing Color values. C# and Microsoft Visual Basic code should use methods of Color instead.

-remarks

Color is a Windows Runtime structure that represents a color that has four channels: A (alpha), R (red), G (green), B (blue). Each of the values is stored as a Byte type with value 0-255. The most frequent application of Color is to define color-related properties in a UI element as part of a UWP app using C++, C#, or Visual Basic and its XAML UI definition.

ColorHelper is one of several Helper classes that are intended to provide utility methods for Windows Runtime structure values. C# and Microsoft Visual Basic code can use methods of Color instead, because utility methods are available directly on the structure due to .NET Framework runtime support. C++ code including Visual C++ component extensions (C++/CX) can only access the data values on Color, for example the A field value. For C++ developers, some of the utility features that C# and Microsoft Visual Basic can use directly on Color as nondata members are available from the ColorHelper class.

Version history

Windows version SDK version Value added
1703 15063 ToDisplayName

-examples

-see-also

Color, Colors, SolidColorBrush