共用方式為


RootElement 類別

定義

RootElements 負責顯示完整的組態頁面。

public class RootElement : MonoTouch.Dialog.Element, System.Collections.Generic.IEnumerable<MonoTouch.Dialog.Section>
type RootElement = class
    inherit Element
    interface IEnumerable
    interface seq<Section>
繼承
RootElement
衍生
實作

備註

至少需要一個 RootElement 才能啟動 MonoTouch.Dialogs 程式。 RootElements 會接著包含 物件的集合 Section ,這些物件會包含各種特製化元素實例,包括其他 RootElements -- 以建立巢狀使用者介面。

RootElements 也可以在區段內用來觸發載入新的巢狀組態頁面。 在此模式中使用時,會在區段內轉譯時使用提供的標題,也會當做子頁面的標題使用。

如果 RootElement 是以區段/元素值初始化,則此值會用來尋找子項目,以提供顯示右側呈現之組態的摘要。

RootElements 也可用來協調無線電元素。 RadioElement 成員可以跨越多個 Sections (例如,實作類似環形音調選取器的內容,並將自訂環形音調與系統響鈴分隔) 。

呼叫 Add 方法可支援 C# 4.0 語法,以在一個階段初始化 RootElement,例如:

return new RootElement ("Settings") {
  new Section ("Basic Settings"){
    new BooleanElement ("Airplane Mode", false),
    new BooleanElement ("Happy", true),
  },
  new Section ("Advanced Settings"){
    new BooleanElement ("Attend seminars", true)
    new BooleanElement ("Enjoy coffee", true)
  }
}

建構函式

RootElement(String)

使用標題初始化 RootSection

RootElement(String, Func<RootElement,UIViewController>)

RootElements 負責顯示完整的組態頁面。

RootElement(String, Group)

初始化 RootElement,這個元素會根據自主專案的單選設定來轉譯摘要。

RootElement(String, Int32, Int32)

使用從指定的區段和元素擷取摘要的標題,初始化 RootElement

欄位

Caption

要針對這個指定專案顯示的標題

(繼承來源 Element)
createOnSelected

點選 RootElement 時叫用的委派。

NeedColorUpdate

設定為指示 DialogViewController 在實作 IColorizeBackground 的儲存格上呼叫 WillDisplay 方法。

Parent

容器物件的控制碼。

(繼承來源 Element)
TableView

正在呈現目前 RootElement 的 UITableView。

UnevenRows

報告資料列的大小是否相同。

屬性

CellKey

覆寫 GetCell 方法的子類別也應該覆寫這個方法

(繼承來源 Element)
Count

此 RootElement 中的區段數目。

IndexPath

傳回指定專案的 IndexPath。 這只適用于分葉元素,如果尚未附加元素,則不適用於的 Toplevel RootElement 或 的 Section。

(繼承來源 Element)
Item[Int32]

傳回位於指定索引處的區段。

RadioSelected

整個根目錄中目前選取的 Radio 專案。

方法

Add(IEnumerable<Section>)

將 IEnumerable 中的所有區段新增至這個根項目。

Add(Section)

將新的區段新增至此 RootElement

Clear()

從這個 RootElement 移除所有區段。

Deselected(DialogViewController, UITableView, NSIndexPath)

RootElements 負責顯示完整的組態頁面。

(繼承來源 Element)
Dispose()

RootElements 負責顯示完整的組態頁面。

(繼承來源 Element)
Dispose(Boolean)

釋放此 RootElement 及其子系所持有的資源。

GetActiveCell()

RootElements 負責顯示完整的組態頁面。

(繼承來源 Element)
GetCell(UITableView)

RootElements 負責顯示完整的組態頁面。

GetContainerTableView()

RootElements 負責顯示完整的組態頁面。

(繼承來源 Element)
GetImmediateRootElement()

如果附加儲存格將會傳回立即的 RootElement

(繼承來源 Element)
Insert(Int32, Section)

將新的區段插入 RootElement

Insert(Int32, UITableViewRowAnimation, Section[])

RootElements 負責顯示完整的組態頁面。

MakeViewController()

RootElements 負責顯示完整的組態頁面。

Matches(String)

叫用以判斷儲存格是否符合指定文字的方法,永遠不會使用 Null 值或空字串叫用。

(繼承來源 Element)
Prepare()

RootElements 負責顯示完整的組態頁面。

PrepareDialogViewController(UIViewController)

RootElements 負責顯示完整的組態頁面。

Reload(Element, UITableViewRowAnimation)

RootElements 負責顯示完整的組態頁面。

Reload(Section, UITableViewRowAnimation)

RootElements 負責顯示完整的組態頁面。

Remove(Section)

使用預設動畫,從這個 RootElement 移除指定的區段。

Remove(Section, UITableViewRowAnimation)

RootElements 負責顯示完整的組態頁面。

RemoveAt(Int32)

使用預設動畫,移除位於指定位置的區段。

RemoveAt(Int32, UITableViewRowAnimation)

RootElements 負責顯示完整的組態頁面。

Selected(DialogViewController, UITableView, NSIndexPath)

RootElements 負責顯示完整的組態頁面。

Summary()

傳回這個 物件所代表值的摘要,適合用來轉譯為具有子物件的 RootElement 結果。

(繼承來源 Element)

明確介面實作

IEnumerable.GetEnumerator()

傳回 RootElement 中所有區段的列舉值。

IEnumerable<Section>.GetEnumerator()

傳回這個 RootElement 中所有區段的列舉值。

適用於