Persistate API documentation
PColor Structure
NamespacesPersistate.UIPColor

[This is preliminary documentation and is subject to change.]

Represents a colour.
Declaration Syntax
C#
public struct PColor
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
PColor(Int64)
Creates a PColor from a stored persistent long representing a colour.

Black
A PColor representing the colour Black.

ColorExpression
Gets a string containing the CLR source code expression representing this PColor.

Empty
A PColor representing a colour that is null.

Equals(Object)
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FromName(String)
Obtains a PColor from a given standard colour name

GetBrightness()()()()
Gets the HSB brightness value for this PColor.

GetHashCode()()()()
Returns the hash code for this instance.
(Inherited from ValueType.)
GetHue()()()()
Gets the HSB hue value for this PColor.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
ImplicitWideningImplicitImplicitImplicit(PColor to Color)
Implicitly converts a Persistate.UI.PColor to a System.Drawing.Color.

ImplicitWideningImplicitImplicitImplicit(Color to PColor)
Implicitly converts a System.Drawing.Color to a Persistate.UI.PColor.

IsEmpty
Gets a value indicating whether this PColor represents a null colour.

IsSystemColor
Indicates whether this PColor represents one of the predefined system colours.

Magenta
A PColor representing the colour Magenta.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Name
Gets the name of this PColor if it is a known colour, otherwise a string containing thre RGB value.

ToKnownColor()()()()
Gets the System.Drawing.KnownColor value for this PColor.

ToLong()()()()
Returns a long value representing this PColor for persistent storage.

ToString()()()()
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
White
A PColor representing the colour White.

Remarks
This version is for the .Net platform. This will be implemented separately (along with the entire Persistate.UI namespace) for different platforms as necessary.

Assembly: Persistate.UI (Module: Persistate.UI) Version: 0.6.1.20 (0.6.1.20)