Section Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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] |