Section Section Class


Sections contain individual Element instances that are rendered by MonoTouch.Dialog

public class Section : MonoTouch.Dialog.Element, System.Collections.IEnumerable
type Section = class
    inherit Element
    interface IEnumerable


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.


Section() Section()

Constructs a Section without header or footers.

Section(String) Section(String)

Constructs a Section with the specified header

Section(String, String) Section(String, String)

Constructs a Section with a header and a footer

Section(UIView) Section(UIView)
Section(UIView, UIView) Section(UIView, UIView)


Caption Caption

The caption to display for this given element

(Inherited from Element)
Elements Elements
EntryAlignment EntryAlignment
Parent Parent

Handle to the container object.

(Inherited from Element)


CellKey CellKey

Subclasses that override the GetCell method should override this method as well

(Inherited from Element)
Count Count
Footer Footer

The section footer, as a string.

FooterView FooterView

The section's footer view.

Header Header

The section header, as a string

HeaderView HeaderView

The section's header view.

IndexPath IndexPath

Returns the IndexPath of a given element. This is only valid for leaf elements, it does not work for a toplevel RootElement or a Section of if the Element has not been attached yet.

(Inherited from Element)
Item[Int32] Item[Int32]


Add(Element) Add(Element)

Adds a new child Element to the Section

Add(IEnumerable<Element>) Add(IEnumerable<Element>)
Add(IEnumerable<UIView>) Add(IEnumerable<UIView>)
Add(RootElement) Add(RootElement)
Add(UIView) Add(UIView)
AddAll(IEnumerable<Element>) AddAll(IEnumerable<Element>)

Add version that can be used with LINQ

Clear() Clear()
Deselected(DialogViewController, UITableView, NSIndexPath) Deselected(DialogViewController, UITableView, NSIndexPath) Inherited from Element
Dispose() Dispose() Inherited from Element
Dispose(Boolean) Dispose(Boolean)
GetActiveCell() GetActiveCell() Inherited from Element
GetCell(UITableView) GetCell(UITableView)
GetContainerTableView() GetContainerTableView() Inherited from Element
GetEnumerator() GetEnumerator()

Enumerator to get all the elements in the Section.

GetImmediateRootElement() GetImmediateRootElement()

If the cell is attached will return the immediate RootElement

(Inherited from Element)
Insert(Int32, Element[]) Insert(Int32, Element[])
Insert(Int32, UITableViewRowAnimation, Element[]) Insert(Int32, UITableViewRowAnimation, Element[])
Insert(Int32, UITableViewRowAnimation, IEnumerable<Element>) Insert(Int32, UITableViewRowAnimation, IEnumerable<Element>)
Insert(Int32, UITableViewRowAnimation, RootElement) Insert(Int32, UITableViewRowAnimation, RootElement)
Matches(String) Matches(String)

Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string.

(Inherited from Element)
Remove(Element) Remove(Element)
Remove(Int32) Remove(Int32)
RemoveRange(Int32, Int32) RemoveRange(Int32, Int32)

Removes a range of elements from the Section

RemoveRange(Int32, Int32, UITableViewRowAnimation) RemoveRange(Int32, Int32, UITableViewRowAnimation)
Selected(DialogViewController, UITableView, NSIndexPath) Selected(DialogViewController, UITableView, NSIndexPath) Inherited from Element
Summary() Summary()

Returns a summary of the value represented by this object, suitable for rendering as the result of a RootElement with child objects.

(Inherited from Element)

Applies to