UIKit.UIColor Members

The members of UIKit.UIColor are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
A constructor that initializes the object from the data stored in the unarchiver object.
UIColor constructor from red, green, blue and alpha components.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
BlackUIColor. A color with grayscale 0.0 and alpha 1.0.
[read-only]
static
BlueUIColor. A color with RGBA of (0,0,1,1).
[read-only]
static
BrownUIColor. A color with RGBA of (0.6, 0.4, 0.2, 1.0).
[read-only]
CGColorCoreGraphics.CGColor. Returns the CoreGraphics CGColor for this UIColor.
[read-only]
CIColorCoreImage.CIColor. Documentation for this section has not yet been entered.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
ClearUIColor. A color with grayscale 0 and alpha 0.
[read-only]
static
CyanUIColor. A color with RGBA of (0, 1, 1, 1).
[read-only]
static
DarkGrayUIColor. A color with grayscale 1/3 and alpha 1.
[read-only]
static
DarkTextColorUIColor. The system color for displaying text on a light background.
[read-only]
static
GrayUIColor. A color object with grayscale 0.5 and alpha 1.0.
[read-only]
static
GreenUIColor. A color with RGBA of (0,1,0,1).
[read-only]
static
GroupTableViewBackgroundColorUIColor. The operating system color used for the background in groupped UITableViews.
[read-only]
static
LightGrayUIColor. A color with grayscale 2/3 and alpha 1.
[read-only]
static
LightTextColorUIColor. The operating system color used for displaying text on a dark background.
[read-only]
static
MagentaUIColor. A color with RGBA of (1,0,1,1).
[read-only]
static
OrangeUIColor. A color with RGBA of (1.0, 0.5, 0.0, 1.0).
[read-only]
static
PurpleUIColor. A color with RGBA of (0.5, 0.0, 0.5, 1.0).
[read-only]
static
RedUIColor. A color with RGBA of (1,0,0,1).
[read-only]
static
ScrollViewTexturedBackgroundColorUIColor. Developers should not use this deprecated property, that renders the area behind scrollable content.
[read-only]
static
UnderPageBackgroundColorUIColor. Developers should not use this deprecated method, indicating the color used to render the background of a page.
[read-only]
static
ViewFlipsideBackgroundColorUIColor. Developers should not use this deprecated property, that specifies the back of pages during a flip transition.
[read-only]
static
WhiteUIColor. A color with grayscale 1 and alpha 1.
[read-only]
static
YellowUIColor. A color with RGBA of (1, 1, 0, 1).

Public Methods

ColorWithAlpha(nfloat) : UIColor
Creates a new color with the specified alpha channel from a reference color.
Copy(Foundation.NSZone) : Foundation.NSObject
Performs a copy of the underlying Objective-C object.
EncodeTo(Foundation.NSCoder)
Encodes the state of the object on the provided encoder
static
FromCGColor(CoreGraphics.CGColor) : UIColor
Creates a UIColor based on the Core Graphics Quartz color reference.
static
FromCIColor(CoreImage.CIColor) : UIColor
Creates a UIColor from a CoreImage CIColor.
static
FromHSB(nfloat, nfloat, nfloat) : UIColor
Creates a color from using the hue, saturation and brightness components.
static
FromHSBA(nfloat, nfloat, nfloat, nfloat) : UIColor
Creates a color from using the hue, saturation, brightness and alpha components.
static
FromPatternImage(UIImage) : UIColor
Creates a UIColor based on an image, the color can then be used as a brush to paint with the image.
static
FromRGB(byte, byte, byte) : UIColor
Creates a solid color using the red, green and blue components specified.
static
FromRGB(int, int, int) : UIColor
Creates a color from the specified combinated of red, green, and blue components.
static
FromRGB(nfloat, nfloat, nfloat) : UIColor
Creates a solid color using the red, green and blue components specified.
static
FromRGBA(byte, byte, byte, byte) : UIColor
Creates a color with the specified alpha transparency using the red, green and blue components specified.
static
FromRGBA(int, int, int, int) : UIColor
Creates a color from the specified combination of red, green, and blue elements, with the specified transparency.
static
FromRGBA(nfloat, nfloat, nfloat, nfloat) : UIColor
Creates a color with the specified alpha transparency using the red, green and blue components specified.
static
FromWhiteAlpha(nfloat, nfloat) : UIColor
Creates a grayscale color, based on the current colorspace.
GetHSBA(out nfloat, out nfloat, out nfloat, out nfloat)
Returns the hue, saturation, brightness and alpha components of the color.
GetRGBA(out nfloat, out nfloat, out nfloat, out nfloat)
Returns the red, green, blue and alpha components of this color.
GetWhite(out nfloat, out nfloat) : bool
The grayscale components of the color.
SetColor()
Sets both the fill and stroke color for drawing.
SetFill()
Sets the fill color for drawing.
SetStroke()
Sets the stroke color for drawing.
override
ToString() : string
Returns a string representation of the value of the current instance.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UIColor object.