iOS Guides | Samples

CoreGraphics.CGGradient Class

Gradient definitions.

See Also: CGGradient

Syntax

public class CGGradient : INativeObject, IDisposable

See Also

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 UIView.Draw method. Application developers should consider a CAGradientLayer as a possible easier-to-use alternative.

Related content

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGGradient are listed below.

See Also: Object

Public Constructors

Public Properties

[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.

Public Methods

Dispose()
Releases the resources used by the CGGradient object.
Finalize()
Finalizer for the CGGradient object

Protected Methods

Dispose(Boolean)
Releases the resources used by the CGGradient object.