ShinobiControls Xamarin Bindings Documentation

ShinobiGrids : ShinobiGrids Namespace

SDataGridGradient Class

A a simple immutable container class for holding the colors and locations of a gradient.

Syntax

[Foundation.Register("SDataGridGradient", true)]
public class SDataGridGradient : SDataGridWrapper

Remarks

These are applied to the colors and locations properties of a CAGradientLayer.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

Members

See Also: Inherited members from SDataGridWrapper.

Public Constructors

Default constructor
Create a gradient with the given color and location arrays.

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.

Public Properties

[read-only]
override
ClassHandle IntPtr . The handle for this class.
[read-only]
override
ClassHandle IntPtr . The handle for this class. (Inherited from SDataGridWrapper.)
[read-only]
Colors UIKit.UIColor[]. A readonly array of UIColor objects defining the color of each gradient stop.
[read-only]
Locations Foundation.NSNumber[]. An readonly array of NSNumber objects defining the location of each gradient stop as a value in the range [0, 1].

Public Methods

static
Create (UIKit.UIColor[], Foundation.NSNumber[]) : SDataGridGradient
Create an autoreleased gradient with the given color and location arrays.

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.

Member Details

SDataGridGradient Constructor

Default constructor

Syntax

[Foundation.Export("init")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public SDataGridGradient ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

SDataGridGradient Constructor

Constructor to call on derived classes to skip initialization and merely allocate the object.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SDataGridGradient (Foundation.NSObjectFlag t)

Parameters

t
Unused sentinel value

Remarks

You should not invoke this method directly.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

SDataGridGradient Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SDataGridGradient (IntPtr handle)

Parameters

handle
Handle of the unmanaged object

Remarks

You should not invoke this method directly.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

SDataGridGradient Constructor

Create a gradient with the given color and location arrays.

Syntax

[Foundation.Export("initWithColors:locations:")]
public SDataGridGradient (UIKit.UIColor[] colors, Foundation.NSNumber[] locations)

Parameters

colors
Documentation for this section has not yet been entered.
locations
Documentation for this section has not yet been entered.

Remarks

Important: The number of colors must match the number of locations.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

ClassHandle Property

The handle for this class.

Syntax

public override IntPtr ClassHandle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

Colors Property

A readonly array of UIColor objects defining the color of each gradient stop.

Syntax

[get: Foundation.Export("colors", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UIColor[] Colors { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

Create Method

Create an autoreleased gradient with the given color and location arrays.

Syntax

[Foundation.Export("gradientWithColors:locations:")]
public static SDataGridGradient Create (UIKit.UIColor[] colors, Foundation.NSNumber[] locations)

Parameters

colors
Documentation for this section has not yet been entered.
locations
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

Dispose Method

Releases unmanaged resources.

Syntax

protected override void Dispose (bool disposing)

Parameters

disposing
True if called by Dispose, false if called from a finalizer

Remarks

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4

Locations Property

An readonly array of NSNumber objects defining the location of each gradient stop as a value in the range [0, 1].

Syntax

[get: Foundation.Export("locations", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual Foundation.NSNumber[] Locations { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The values must be monotonically increasing. If null, the stops are assumed to spread uniformly across the [0,1] range.

Requirements

Namespace: ShinobiGrids
Assembly: ShinobiGrids (in ShinobiGrids.dll)
Assembly Versions: 2.8.0.4