CGGradient CGGradient Class

Definition

Gradient definitions.

public class CGGradient : IDisposable, ObjCRuntime.INativeObject
type CGGradient = class
    interface INativeObject
    interface IDisposable
Inheritance
CGGradientCGGradient
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[])
CGGradient(CGColorSpace, nfloat[]) CGGradient(CGColorSpace, nfloat[])
CGGradient(CGColorSpace, CGColor[], nfloat[]) CGGradient(CGColorSpace, CGColor[], nfloat[])
CGGradient(CGColorSpace, nfloat[], nfloat[]) CGGradient(CGColorSpace, nfloat[], nfloat[])

Properties

Handle Handle

Handle (pointer) to the unmanaged object representation.

Methods

Dispose() Dispose()

Releases the resources used by the CGGradient object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGGradient object.

Finalize() Finalize()

Finalizer for the CGGradient object

Applies to

See also