ShinobiControls Xamarin Bindings Documentation

ShinobiGrids : ShinobiGrids Namespace

SGridColRowStyle Class

A style that can be applied to an entire Row or Column.

Syntax

[Foundation.Register("SGridColRowStyle", true)]
public class SGridColRowStyle : SGridCellStyle

Remarks

An object of type SGridColRowStyle represents a style to be applied to an entire row or column. The methods SGridDelegate.GetRowStyle(ShinobiGrid, NInt, NInt) and SGridDelegate.GetColStyle(ShinobiGrid, NInt) of the object that implements the ShinobiGrids.SGridDelegate protocol are intended to return objects of this type in order to apply a style to an entire row or column.

See ShinobiGrids.SGridCellStyle for details regarding style precedence and conflicts.

Requirements

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

Members

See Also: Inherited members from SGridCellStyle.

Public Constructors

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 (Inherited from SGridCellStyle.)
[read-only]
override
ClassHandle IntPtr . The handle for this class.
[read-only]
override
ClassHandle IntPtr . The handle for this class. (Inherited from SGridCellStyle.)
ContentInset UIKit.UIEdgeInsets . The indents that pad the inside of the cell. (Inherited from SGridCellStyle.)
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. (Inherited from SGridCellStyle.)
Gradient SGridGradient . The gradient that will be applied to the cell. (Inherited from SGridCellStyle.)
MinimumSize Foundation.NSNumber . Minimum size for the width of a column or height of a row.
Size Foundation.NSNumber . This property either represents the width of a column or the height of a row.
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. (Inherited from SGridCellStyle.)
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. (Inherited from SGridCellStyle.)
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. (Inherited from SGridCellStyle.)

Public Methods

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.
override
Dispose (bool)
Releases unmanaged resources. (Inherited from SGridCellStyle.)

Member Details

SGridColRowStyle Constructor

Default constructor.

Syntax

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

Remarks

Requirements

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

SGridColRowStyle Constructor

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

Syntax

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

SGridColRowStyle Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

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

SGridColRowStyle Constructor

Constructor

Syntax

public SGridColRowStyle (UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UIFont font)

Parameters

backgroundColor
Background color
textColor
Text color
font
Font

Remarks

Requirements

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

SGridColRowStyle Constructor

Constructor

Syntax

[Foundation.Export("initWithSize:withBackgroundColor:withTextColor:withFont:")]
public SGridColRowStyle (Foundation.NSNumber newSize, UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UIFont font)

Parameters

newSize
Size
backgroundColor
Background color
textColor
Text color
font
Font

Remarks

Requirements

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

SGridColRowStyle Constructor

Documentation for this section has not yet been entered.

Syntax

public SGridColRowStyle (nfloat newSize, UIKit.UIColor newBackgroundColor, UIKit.UIColor newTextColor, UIKit.UIFont newFont)

Parameters

newSize
Documentation for this section has not yet been entered.
newBackgroundColor
Documentation for this section has not yet been entered.
newTextColor
Documentation for this section has not yet been entered.
newFont
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

SGridColRowStyle Constructor

Constructor

Syntax

public SGridColRowStyle (UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UITextAlignment textAlign, UIKit.UIControlContentVerticalAlignment textVerticalAlign, UIKit.UIFont font)

Parameters

backgroundColor
Background color
textColor
Text color
textAlign
Text align
textVerticalAlign
Text vertical align
font
Font

Remarks

Requirements

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

SGridColRowStyle Constructor

Creates and returns an object that represents the style of an entire row or column with the specified parameters.

Syntax

[Foundation.Export("initWithSize:withBackgroundColor:withTextColor:withTextAlignment:withVerticalTextAlignment:withFont:")]
public SGridColRowStyle (Foundation.NSNumber newSize, UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UITextAlignment textAlignment, UIKit.UIControlContentVerticalAlignment textVerticalAlignment, UIKit.UIFont newFont)

Parameters

newSize
Documentation for this section has not yet been entered.
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.
newFont
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

Requirements

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

Create Method

Creates an autoreleased object using the corresponding SGridColRowStyle(float, UIKit.UIColor, UIKit.UIColor, UIKit.UIFont).

Syntax

[Foundation.Export("styleWithSize:withCellStyle:")]
public static SGridColRowStyle Create (Foundation.NSNumber newSize, SGridCellStyle cellStyle)

Parameters

newSize
Documentation for this section has not yet been entered.
cellStyle
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

Creates an autoreleased object using the corresponding SGridColRowStyle(Foundation.NSNumber, UIKit.UIColor, UIKit.UIColor, UIKit.UIFont).

Syntax

[Foundation.Export("styleWithSize:withBackgroundColor:withTextColor:withFont:")]
public static SGridColRowStyle Create (Foundation.NSNumber newSize, UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UIFont font)

Parameters

newSize
Documentation for this section has not yet been entered.
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("styleWithSize:withBackgroundColor:withTextColor:withTextAlignment:withVerticalTextAlignment:withFont:")]
public static SGridColRowStyle Create (Foundation.NSNumber newSize, UIKit.UIColor backgroundColor, UIKit.UIColor textColor, UIKit.UITextAlignment textAlignment, UIKit.UIControlContentVerticalAlignment textVerticalAlignment, UIKit.UIFont newFont)

Parameters

newSize
Documentation for this section has not yet been entered.
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.
newFont
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

MinimumSize Property

Minimum size for the width of a column or height of a row.

Syntax

[get: Foundation.Export("minimumSize", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setMinimumSize:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual Foundation.NSNumber MinimumSize { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

If the grid is unable to find a size to use (col width or row height) then the grid will calculate some to use. The grid will try to fit all content into an unscrollable grid, but will not reduce a given size below the minimum size. Minimum size is also adhered to when the user is pinching to resize a column. Default value is null.

Requirements

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

Size Property

This property either represents the width of a column or the height of a row.

Syntax

[get: Foundation.Export("size", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setSize:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual Foundation.NSNumber Size { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Default value is null. Having this set as null results in auto-sizing of a cell's appropriate dimension. If auto-sizing is not desired then set this to be non-null. A size of zero will mean that the column or row is not displayed.

Requirements

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