C# Class CrossUI.iOS.Dialog.Elements.Section

Sections contain individual Element instances that are rendered by MonoTouch.Dialog
Sections are used to group elements in the screen and they are the only valid direct child of the RootElement. Sections can contain any of the standard elements, including new RootElements. RootElements embedded in a section are used to navigate to a new deeper level. You can assign a header and a footer either as strings (Header and Footer) properties, or as UIViews to be shown (HeaderView and FooterView). Internally this uses the same storage, so you can only show one or the other.
Inheritance: Element, IEnumerable
显示文件 Open project: MvvmCross/MvvmCross Class Usage Examples

Public Methods

Method Description
Add ( Element element ) : void

Adds a new child Element to the Section

Add ( IEnumerable views ) : void

Adds the UIViews to the section.

Add ( UIView view ) : void

Use to add a UIView to a section, it makes the section opaque, to get a transparent one, you must manually call UIViewElement

AddAll ( IEnumerable elements ) : int

Add version that can be used with LINQ

Clear ( ) : void
GetEnumerator ( ) : IEnumerator

Enumerator to get all the elements in the Section.

Insert ( int idx, UITableViewRowAnimation anim, IEnumerable newElements ) : int
Insert ( int index ) : void
Insert ( int idx, UITableViewRowAnimation anim ) : void

Inserts a series of elements into the Section using the specified animation

Remove ( Element e ) : void
Remove ( int idx ) : void
RemoveRange ( int start, int count ) : void

Removes a range of elements from the Section

RemoveRange ( int start, int count, UITableViewRowAnimation anim ) : void

Remove a range of elements from the section with the given animation

Section ( ) : CoreGraphics

Constructs a Section without header or footers.

Section ( UIView header ) : CoreGraphics
Section ( UIView header, UIView footer ) : CoreGraphics
Section ( string caption ) : CoreGraphics

Constructs a Section with the specified header

Section ( string caption, string footer ) : CoreGraphics

Constructs a Section with a header and a footer

this ( int idx ) : Element

Protected Methods

Method Description
Dispose ( bool disposing ) : void
GetCellImpl ( UITableView tv ) : UITableViewCell

Private Methods

Method Description
Add ( IEnumerable elements ) : int
InsertVisual ( int idx, UITableViewRowAnimation anim, int count ) : void

Method Details

Add() public method

Adds a new child Element to the Section
public Add ( Element element ) : void
element Element /// An element to add to the section. ///
return void

Add() public method

Adds the UIViews to the section.
public Add ( IEnumerable views ) : void
views IEnumerable /// An enumarable list that can be produced by something like: /// from x in ... select (UIView) new UIFoo (); ///
return void

Add() public method

Use to add a UIView to a section, it makes the section opaque, to get a transparent one, you must manually call UIViewElement
public Add ( UIView view ) : void
view UIView
return void

AddAll() public method

Add version that can be used with LINQ
public AddAll ( IEnumerable elements ) : int
elements IEnumerable /// An enumerable list that can be produced by something like: /// from x in ... select (Element) new MyElement (...) ///
return int

Clear() public method

public Clear ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetCellImpl() protected method

protected GetCellImpl ( UITableView tv ) : UITableViewCell
tv UITableView
return UITableViewCell

GetEnumerator() public method

Enumerator to get all the elements in the Section.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

Insert() public method

public Insert ( int idx, UITableViewRowAnimation anim, IEnumerable newElements ) : int
idx int
anim UITableViewRowAnimation
newElements IEnumerable
return int

Insert() public method

public Insert ( int index ) : void
index int
return void

Insert() public method

Inserts a series of elements into the Section using the specified animation
public Insert ( int idx, UITableViewRowAnimation anim ) : void
idx int /// The index where the elements are inserted ///
anim UITableViewRowAnimation /// The animation to use ///
return void

Remove() public method

public Remove ( Element e ) : void
e Element
return void

Remove() public method

public Remove ( int idx ) : void
idx int
return void

RemoveRange() public method

Removes a range of elements from the Section
public RemoveRange ( int start, int count ) : void
start int /// Starting position ///
count int /// Number of elements to remove from the section ///
return void

RemoveRange() public method

Remove a range of elements from the section with the given animation
public RemoveRange ( int start, int count, UITableViewRowAnimation anim ) : void
start int /// Starting position ///
count int /// Number of elements to remove form the section ///
anim UITableViewRowAnimation /// The animation to use while removing the elements ///
return void

Section() public method

Constructs a Section without header or footers.
public Section ( ) : CoreGraphics
return CoreGraphics

Section() public method

public Section ( UIView header ) : CoreGraphics
header UIView
return CoreGraphics

Section() public method

public Section ( UIView header, UIView footer ) : CoreGraphics
header UIView
footer UIView
return CoreGraphics

Section() public method

Constructs a Section with the specified header
public Section ( string caption ) : CoreGraphics
caption string /// The header to display ///
return CoreGraphics

Section() public method

Constructs a Section with a header and a footer
public Section ( string caption, string footer ) : CoreGraphics
caption string /// The caption to display (or null to not display a caption) ///
footer string /// The footer to display. ///
return CoreGraphics

this() public method

public this ( int idx ) : Element
idx int
return Element