ShinobiControls Xamarin Bindings Documentation

ShinobiGrids : ShinobiGrids Namespace

SGridCellStyle Class

A class to define the styling to use on cells.

Syntax

[Foundation.Register("SGridCellStyle", true)]
public class SGridCellStyle : Foundation.NSObject, Foundation.INSCopying, IDisposable

Remarks

An object of this type is used, in certain circumatances, to provide a style that will be used for an SGridCell. If this object contains a style that cannot be applied to the cell in question then the style will be ignored - for example, we have a textColor and try to apply it to an SGridCell that has no text, then the textColor is ignored.

Note that where there are style conflicts, the application of style occurs according to the level of precedence. For example, if a cell is returned as having a blue background by applying this in the SGridDataSource protocol method SGridDataSource.GetCell(ShinobiGrid, SGridCoord) but we later specify that the row that the cell belongs to should have a red background (by implementing the SGridDelegate protocol), the cell will take on the most specific style. In this case we specify a row style and a cell style - therefore the most specific style is the cell style and so the cell in question will have a blue background. All other cells in the row will have a red background (unless a more specific style is applied elsewhere).

Most specific to least specific, the styling order is: Giving a cell a background color itself (this cannot be done with size). A style returned from a delegate method is checked next. If null, or a specific member of the style is null, the following is checked: The defaultColStyle and defaultRowStyle properties on the grid object owning the cell.

If no appropriate style is found, autosizing takes place and default styles are used.

Requirements

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

Members

See Also: Inherited members from Foundation.NSObject.

Public Constructors

Default constructor
Returns a style object that represents the passed parameters. Passing null to any parameter results in a default value being used.
Returns a style object that represents the passed parameters. Passing null to any parameter results in a default value being used.

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

BackgroundColor UIKit.UIColor . The color that will be used for the background of the cell
[read-only]
override
ClassHandle IntPtr . The handle for this class.
ContentInset UIKit.UIEdgeInsets . The indents that pad the inside of the cell.
Font UIKit.UIFont . The font that will be used for the text of the cell. If the cell has no text then this property is ignored.
Gradient SGridGradient . The gradient that will be applied to the cell.
TextAlignment UIKit.UITextAlignment . The horizontal alignment that will be used for the text of the cell. If the cell has no text then this property is ignored.
TextColor UIKit.UIColor . The color that will be used for the text of the cell. If the cell has no text then this property is ignored.
TextVerticalAlignment UIKit.UIControlContentVerticalAlignment . The vertical alignment that will be applied to any text within the cell. If the cell has no text then this property is ignored.

Public Methods

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.

Member Details

SGridCellStyle Constructor

Default constructor

Syntax

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

Remarks

Documentation for this section has not yet been entered.

Requirements

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

SGridCellStyle Constructor

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

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SGridCellStyle (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

SGridCellStyle Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SGridCellStyle (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

SGridCellStyle Constructor

Returns a style object that represents the passed parameters. Passing null to any parameter results in a default value being used.

Syntax

[Foundation.Export("initWithBackgroundColor:withTextColor:withFont:")]
public SGridCellStyle (UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UIFont font)

Parameters

backgroundColor
Documentation for this section has not yet been entered.
textColor
Documentation for this section has not yet been entered.
font
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

SGridCellStyle Constructor

Returns a style object that represents the passed parameters. Passing null to any parameter results in a default value being used.

Syntax

[Foundation.Export("initWithBackgroundColor:withTextColor:withTextAlignment:withVerticalTextAlignment:withFont:")]
public SGridCellStyle (UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UITextAlignment textAlignment, UIKit.UIControlContentVerticalAlignment textVerticalAlignment, UIKit.UIFont font)

Parameters

backgroundColor
Documentation for this section has not yet been entered.
textColor
Documentation for this section has not yet been entered.
textAlignment
Documentation for this section has not yet been entered.
textVerticalAlignment
Documentation for this section has not yet been entered.
font
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

BackgroundColor Property

The color that will be used for the background of the cell

Syntax

[get: Foundation.Export("backgroundColor", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setBackgroundColor:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UIColor BackgroundColor { get; set; }

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

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

ContentInset Property

The indents that pad the inside of the cell.

Syntax

[get: Foundation.Export("contentInset")]
[set: Foundation.Export("setContentInset:")]
public virtual UIKit.UIEdgeInsets ContentInset { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

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

Copy Method

Documentation for this section has not yet been entered.

Syntax

[Foundation.Export("copyWithZone:")]
public virtual Foundation.NSObject Copy (Foundation.NSZone zone)

Parameters

zone
Documentation for this section has not yet been entered.

Returns

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

Syntax

[Foundation.Export("styleWithBackgroundColor:withTextColor:withFont:")]
public static SGridCellStyle Create (UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UIFont font)

Parameters

backgroundColor
Documentation for this section has not yet been entered.
textColor
Documentation for this section has not yet been entered.
font
Documentation for this section has not yet been entered.

Returns

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

Syntax

[Foundation.Export("styleWithBackgroundColor:withTextColor:withTextAlignment:withVerticalTextAlignment:withFont:")]
public static SGridCellStyle Create (UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UITextAlignment textAlignment, UIKit.UIControlContentVerticalAlignment textVerticalAlignment, UIKit.UIFont font)

Parameters

backgroundColor
Documentation for this section has not yet been entered.
textColor
Documentation for this section has not yet been entered.
textAlignment
Documentation for this section has not yet been entered.
textVerticalAlignment
Documentation for this section has not yet been entered.
font
Documentation for this section has not yet been entered.

Returns

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

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

Font Property

The font that will be used for the text of the cell. If the cell has no text then this property is ignored.

Syntax

[get: Foundation.Export("font", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setFont:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UIFont Font { get; set; }

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

Gradient Property

The gradient that will be applied to the cell.

Syntax

[get: Foundation.Export("gradient", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setGradient:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual SGridGradient Gradient { get; set; }

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

TextAlignment Property

The horizontal alignment that will be used for the text of the cell. If the cell has no text then this property is ignored.

Syntax

[get: Foundation.Export("textAlignment", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
[set: Foundation.Export("setTextAlignment:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
public virtual UIKit.UITextAlignment TextAlignment { get; set; }

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

TextColor Property

The color that will be used for the text of the cell. If the cell has no text then this property is ignored.

Syntax

[get: Foundation.Export("textColor", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setTextColor:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UIColor TextColor { get; set; }

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

TextVerticalAlignment Property

The vertical alignment that will be applied to any text within the cell. If the cell has no text then this property is ignored.

Syntax

[get: Foundation.Export("textVerticalAlignment", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
[set: Foundation.Export("setTextVerticalAlignment:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
public virtual UIKit.UIControlContentVerticalAlignment TextVerticalAlignment { get; set; }

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