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
파일 보기 프로젝트 열기: MvvmCross/MvvmCross 1 사용 예제들

공개 메소드들

메소드 설명
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