CGGradient Class

Definition

Gradient definitions.

public class CGGradient : IDisposable, ObjCRuntime.INativeObject
type CGGradient = class
    interface INativeObject
    interface IDisposable
Inheritance
CGGradient
Implements

Remarks

A CGGradient defines a smooth transition between colors.

To use a CGGradient, application developers will typically have to create a custom UIView and override its Draw(CGRect) method. Application developers should consider a CAGradientLayer as a possible easier-to-use alternative.

Constructors

CGGradient(CGColorSpace, CGColor[])
CGGradient(CGColorSpace, CGColor[], nfloat[])
CGGradient(CGColorSpace, nfloat[])
CGGradient(CGColorSpace, nfloat[], nfloat[])

Properties

Handle

Handle (pointer) to the unmanaged object representation.

Methods

Dispose()

Releases the resources used by the CGGradient object.

Dispose(Boolean)

Releases the resources used by the CGGradient object.

Finalize()

Finalizer for the CGGradient object

Applies to

See also