Color Methods
Collapse the table of content
Expand the table of content

Color Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Color type exposes the following members.

  NameDescription
Public method Equals(Color) Tests whether the specified Color structure is identical to the current color.
Public method Equals(Object) Tests whether the specified object is a Color structure and is equivalent to the current color. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FromArgb Creates a new Color structure by using the specified sRGB alpha channel and color channel values.
Public method GetHashCode Gets a hash code for the current Color structure. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString() Creates a string representation of the color using the ARGB channels in hex notation. (Overrides ValueType.ToString().)
Public method ToString(IFormatProvider) Creates a string representation of the color by using the ARGB channels and the specified format provider.
Top

  NameDescription
Explicit interface implemetation Private method IFormattable.ToString Infrastructure. For a description of this member, see ToString.
Top

Show:
© 2017 Microsoft