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
Afficher le fichier Open project: escoz/MonoMobile.Forms Class Usage Examples

Méthodes publiques

Свойство Type Description
Elements List
EntryAlignment System.Drawing.SizeF

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
InsertVisual ( int idx, UITableViewRowAnimation anim, int count ) : void

Method Details

Add() public méthode

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 (...) ///
Résultat int

Add() public méthode

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

Add() public méthode

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 (); ///
Résultat void

Add() public méthode

public Add ( UIView view ) : void
view UIView
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetCell() public méthode

public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
Résultat UITableViewCell

GetEnumerator() public méthode

Enumerator to get all the elements in the Section.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

Insert() public méthode

public Insert ( int idx, UITableViewRowAnimation anim, IEnumerable newElements ) : int
idx int
anim UITableViewRowAnimation
newElements IEnumerable
Résultat int

Insert() public méthode

public Insert ( int index ) : void
index int
Résultat void

Insert() public méthode

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 ///
Résultat void

Remove() public méthode

public Remove ( Element e ) : void
e Element
Résultat void

Remove() public méthode

public Remove ( int idx ) : void
idx int
Résultat void

RemoveRange() public méthode

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 ///
Résultat void

RemoveRange() public méthode

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 ///
Résultat void

Section() public méthode

Constructs a Section without header or footers.
public Section ( ) : System
Résultat System

Section() public méthode

public Section ( UIView header ) : System
header UIView
Résultat System

Section() public méthode

public Section ( UIView header, UIView footer ) : System
header UIView
footer UIView
Résultat System

Section() public méthode

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

Section() public méthode

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. ///
Résultat System

Section() public méthode

public Section ( string caption, string footer, string ID ) : System
caption string
footer string
ID string
Résultat System

this() public méthode

public this ( int idx ) : Element
idx int
Résultat Element

Property Details

Elements public_oe property

public List Elements
Résultat List

EntryAlignment public_oe property

public SizeF,System.Drawing EntryAlignment
Résultat System.Drawing.SizeF