ShinobiControls Xamarin Bindings Documentation

ShinobiGauges : Shinobi.Gauges Namespace

SGaugeQualitativeRange Class

A data structure object that describes a color range on the Shinobi.Gauges.SGaugeAxis.

Syntax

[Foundation.Register("SGaugeQualitativeRange", true)]
public class SGaugeQualitativeRange : Foundation.NSObject

Remarks

For example, to set the ranges as 55 to 65 as yellow, 65 to 70 as orange, and 70+ as red:
Example
gauge.QualitativeRanges = new SGaugeQualitativeRange[3] {
	new SGaugeQualitativeRange(55, 65, UIColor.Yellow),
	new SGaugeQualitativeRange(65, 70, UIColor.Orange),
	new SGaugeQualitativeRange(70, null, UIColor.Red),
};
The size of the range drawn on the axis can be configured with the SGaugeStyle.QualitativeRangeInnerPosition and SGaugeStyle.QualitativeRangeOuterPosition properies.

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

Members

See Also: Inherited members from Foundation.NSObject.

Public Constructors

Create a range with a given minimum, maximum and color.

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]
Color UIKit.UIColor . The color of the range.
[read-only]
Maximum Foundation.NSNumber . The maximum value to which the color will be rendered.
[read-only]
Minimum Foundation.NSNumber . The minimum value at which the color will be rendered.

Public Methods

static
Create (Foundation.NSNumber, Foundation.NSNumber, UIKit.UIColor) : SGaugeQualitativeRange
Factory method to create a range with a given minimum, maximum and color.

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.

Member Details

SGaugeQualitativeRange Constructor

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

Syntax

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

Parameters

t
Unused sentinel value

Remarks

You should not invoke this method directly.

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

SGaugeQualitativeRange Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

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

Parameters

handle
Handle of the unmanaged object

Remarks

You should not invoke this method directly.

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

SGaugeQualitativeRange Constructor

Create a range with a given minimum, maximum and color.

Syntax

[Foundation.Export("initWithMinimum:maximum:color:")]
public SGaugeQualitativeRange (Foundation.NSNumber minimum, Foundation.NSNumber maximum, UIKit.UIColor color)

Parameters

minimum
The minimum value at which the color will be rendered. If set to null, the minimum range of the gauge will be used.
maximum
The maximum value at which the color will be rendered. If set to null, the maximum range of the gauge will be used.
color
The color of the range to render.

Remarks

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.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

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

Color Property

The color of the range.

Syntax

[get: Foundation.Export("color")]
public virtual UIKit.UIColor Color { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

Create Method

Factory method to create a range with a given minimum, maximum and color.

Syntax

[Foundation.Export("rangeWithMinimum:maximum:color:")]
public static SGaugeQualitativeRange Create (Foundation.NSNumber minimum, Foundation.NSNumber maximum, UIKit.UIColor color)

Parameters

minimum
The minimum value at which the color will be rendered. If set to null, the minimum range of the gauge will be used.
maximum
The maximum value at which the color will be rendered. If set to null, the maximum range of the gauge will be used.
color
The color of the range to render.

Returns

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.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

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

Maximum Property

The maximum value to which the color will be rendered.

Syntax

[get: Foundation.Export("maximum")]
public virtual Foundation.NSNumber Maximum { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4

Minimum Property

The minimum value at which the color will be rendered.

Syntax

[get: Foundation.Export("minimum")]
public virtual Foundation.NSNumber Minimum { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Gauges
Assembly: ShinobiGauges (in ShinobiGauges.dll)
Assembly Versions: 2.8.0.4