C# Класс 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.
Наследование: Element, IEnumerable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
GetCellImpl ( UITableView tv ) : UITableViewCell

Приватные методы

Метод Описание
Add ( IEnumerable elements ) : int
InsertVisual ( int idx, UITableViewRowAnimation anim, int count ) : void

Описание методов

Add() публичный Метод

Adds a new child Element to the Section
public Add ( Element element ) : void
element Element /// An element to add to the section. ///
Результат void

Add() публичный Метод

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 (); ///
Результат void

Add() публичный Метод

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
Результат void

AddAll() публичный Метод

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 (...) ///
Результат int

Clear() публичный Метод

public Clear ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetCellImpl() защищенный Метод

protected GetCellImpl ( UITableView tv ) : UITableViewCell
tv UITableView
Результат UITableViewCell

GetEnumerator() публичный Метод

Enumerator to get all the elements in the Section.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

Insert() публичный Метод

public Insert ( int idx, UITableViewRowAnimation anim, IEnumerable newElements ) : int
idx int
anim UITableViewRowAnimation
newElements IEnumerable
Результат int

Insert() публичный Метод

public Insert ( int index ) : void
index int
Результат void

Insert() публичный Метод

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 ///
Результат void

Remove() публичный Метод

public Remove ( Element e ) : void
e Element
Результат void

Remove() публичный Метод

public Remove ( int idx ) : void
idx int
Результат void

RemoveRange() публичный Метод

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 ///
Результат void

RemoveRange() публичный Метод

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 ///
Результат void

Section() публичный Метод

Constructs a Section without header or footers.
public Section ( ) : CoreGraphics
Результат CoreGraphics

Section() публичный Метод

public Section ( UIView header ) : CoreGraphics
header UIView
Результат CoreGraphics

Section() публичный Метод

public Section ( UIView header, UIView footer ) : CoreGraphics
header UIView
footer UIView
Результат CoreGraphics

Section() публичный Метод

Constructs a Section with the specified header
public Section ( string caption ) : CoreGraphics
caption string /// The header to display ///
Результат CoreGraphics

Section() публичный Метод

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. ///
Результат CoreGraphics

this() публичный Метод

public this ( int idx ) : Element
idx int
Результат Element