Section Class

Definition

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
Inheritance
Section
Implements

Remarks

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.

Constructors

Section()

Constructs a Section without header or footers.

Section(String, String)

Constructs a Section with a header and a footer

Section(String)

Constructs a Section with the specified header

Section(UIView, UIView)
Section(UIView)

Fields

Caption

The caption to display for this given element

(Inherited from Element)
Elements
EntryAlignment
Parent

Handle to the container object.

(Inherited from Element)

Properties

CellKey

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

(Inherited from Element)
Count
Footer

The section footer, as a string.

FooterView

The section's footer view.

Header

The section header, as a string

HeaderView

The section's header view.

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]

Methods

Add(Element)

Adds a new child Element to the Section

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

Add version that can be used with LINQ

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

Enumerator to get all the elements in the Section.

GetImmediateRootElement()

If the cell is attached will return the immediate RootElement

(Inherited from Element)
Insert(Int32, Element[])
Insert(Int32, UITableViewRowAnimation, Element[])
Insert(Int32, UITableViewRowAnimation, IEnumerable<Element>)
Insert(Int32, UITableViewRowAnimation, RootElement)
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(Int32)
RemoveRange(Int32, Int32, UITableViewRowAnimation)
RemoveRange(Int32, Int32)

Removes a range of elements from the Section

Selected(DialogViewController, UITableView, NSIndexPath) (Inherited from Element)
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