ShinobiControls Xamarin Bindings Documentation

ShinobiGrids : ShinobiGrids Namespace

SGridAutoMultiLineCell Class

Provides an easy mechanism for populating your cells with multi-line text content.

Syntax

[Foundation.Register("SGridAutoMultiLineCell", true)]
public class SGridAutoMultiLineCell : SGridTextInputCell, ISGridTextViewDelegate, IDisposable

Remarks

An object of this class has a SGridAutoMultiLineCell.TextLabel property for convenience. Set the text of this property to quickly generate content for an object of this class. Objects of this class are editable by the user - see the ShinobiGrid.SingleTapEventMask and ShinobiGrid.DoubleTapEventMask property of SGrid to customise this.

Requirements

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

Members

See Also: Inherited members from SGridTextInputCell.

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Initializes a cell with a reuse identifier.

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

BottomIndentForTextView nfloat . The amount of space to bottom indent the textField view. (Inherited from SGridTextInputCell.)
[read-only]
override
ClassHandle IntPtr . The handle for this class.
[read-only]
override
ClassHandle IntPtr . The handle for this class. (Inherited from SGridTextInputCell.)
[read-only]
override
ClassHandle IntPtr . The handle for this class. (Inherited from SGridCell.)
[read-only]
ContentFrame CoreGraphics.CGRect . A readonly frame which represents the area available for content of the cell. (Inherited from SGridCell.)
ContentInset UIKit.UIEdgeInsets . The amount of space indented around the textField view. (Inherited from SGridTextInputCell.)
EditingTextView UIKit.UITextView . The text view that is temporarily used whilst the cell is editing.
FitSubviewsToView bool . Setting this property to true results in any added subviews having dimensions automatically applied so that they are the same size as the cell. Default value is true. (Inherited from SGridCell.)
[read-only]
GridCoord SGridCoord . This property represents the coordinates of the cell and uniquely identifies it within its parent grid. The notation {`colIndex`, `row`}, is sometimes used to refer to a gridCoord object within this documentation. (Inherited from SGridCell.)
LeftIndentForTextView nfloat . The amount of space to left indent the textField view. (Inherited from SGridTextInputCell.)
[read-only]
ReuseIdentifier string . A string used to identify a cell that is reusable. (read-only) The reuse identifier is associated with a SGridCell object that the ShinobiGrid's data source creates with the intent to reuse it as the basis (for performance reasons) for multiple cells of a ShinobiGrid object. It is assigned to the cell object in ReuseIdentifier and cannot be changed thereafter. A ShinobiGrid object maintains a collection of the currently reusable cells, each with its own reuse identifier. (Inherited from SGridCell.)
RightIndentForTextView nfloat . The amount of space to right indent the textField view. (Inherited from SGridTextInputCell.)
[read-only]
Selected bool . A read-only boolean that indicates if this cell is selected or not. (Inherited from SGridCell.)
SelectedColor UIKit.UIColor . The color that the cell will change to when selected. Setting this property to null will result in a selection color that is identical to the cell's final background color. (Inherited from SGridCell.)
SelectedStyle SGridCellStyle . The style that will be applied to the cell when selected. (Inherited from SGridCell.)
TextLabel UIKit.UILabel . The text label responsible for rendering multi-line text content in this cell.
TopIndentForTextView nfloat . The amount of space to top indent the textField view. (Inherited from SGridTextInputCell.)

Public Methods

ApplyStyle (SGridCellStyle)
This method is called in order to style each cell as the grid is preparing to display. (Inherited from SGridCell.)
Copy (Foundation.NSZone) : Foundation.NSObject
Documentation for this section has not yet been entered. (Inherited from SGridCell.)
ResetForReuse ()
This method is called before a cell is returned from the pool that it has been stored in. Any state that may need to be reset prior to it being retrieved from ShinobiGrid.DequeueReusableCellWithIdentifier can be done inside this method. (Inherited from SGridCell.)
SetSelected (bool, bool) : bool
Set this cell as being selected or deselected. (Inherited from SGridCell.)

Protected Methods

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

Member Details

SGridAutoMultiLineCell Constructor

A constructor that initializes the object from the data stored in the unarchiver object.

Syntax

[Foundation.Export("initWithCoder:")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public SGridAutoMultiLineCell (Foundation.NSCoder coder)

Parameters

coder
The unarchiver object

Remarks

This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization).

Requirements

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

SGridAutoMultiLineCell Constructor

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

Syntax

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

SGridAutoMultiLineCell Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

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

SGridAutoMultiLineCell Constructor

Initializes a cell with a reuse identifier.

Syntax

public SGridAutoMultiLineCell (string identifier)

Parameters

identifier
The reuse identifier

Remarks

Important: This method must be used to initialize a cell.

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

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

EditingTextView Property

The text view that is temporarily used whilst the cell is editing.

Syntax

[get: Foundation.Export("editingTextView", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setEditingTextView:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UITextView EditingTextView { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

When the cell is not editing this property will return null.

Requirements

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

TextLabel Property

The text label responsible for rendering multi-line text content in this cell.

Syntax

[get: Foundation.Export("textLabel", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setTextLabel:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UILabel TextLabel { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Important: When a multi line text cell goes into editing mode this UILabel is visually switched with a UITextView (SGridAutoMultiLineCell.EditingTextView) to allow keyboard input. This textLabel is still an accessible property, but the UI presented within the cell is rendered via EditingTextView.

Requirements

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