C# Class MonoTouch.Dialog.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: escoz/MonoMobile.Forms Class Usage Examples

Public Properties

Property Type Description
Elements List
EntryAlignment System.Drawing.SizeF

Public Methods

Method Description
Add ( IEnumerable elements ) : int

Add version that can be used with LINQ

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
Clear ( ) : void
GetCell ( UITableView tv ) : UITableViewCell
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 ( ) : System

Constructs a Section without header or footers.

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

Constructs a Section with the specified header

Section ( string caption, string footer ) : System

Constructs a Section with a header and a footer

Section ( string caption, string footer, string ID ) : System
this ( int idx ) : Element

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

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

Method Details

Add() public method

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

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

public Add ( UIView view ) : void
view UIView
return void

Clear() public method

public Clear ( ) : void
return void

Dispose() protected method

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

GetCell() public method

public GetCell ( 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 ( ) : System
return System

Section() public method

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

Section() public method

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

Section() public method

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

Section() public method

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

Section() public method

public Section ( string caption, string footer, string ID ) : System
caption string
footer string
ID string
return System

this() public method

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

Property Details

Elements public_oe property

public List Elements
return List

EntryAlignment public_oe property

public SizeF,System.Drawing EntryAlignment
return System.Drawing.SizeF