次の方法で共有


JsonElement クラス

定義

Json ソースからインスタンス化される RootElement。

public class JsonElement : MonoTouch.Dialog.RootElement
type JsonElement = class
    inherit RootElement
継承
JsonElement

注釈

JsonElement は RootElement のサブケースであり、RootElement を拡張して、入れ子になった子の内容をローカル URL またはリモート URL から読み込むことができます。

JsonElement は、2 つの形式でインスタンス化できる RootElement です。 あるバージョンでは、オンデマンドでコンテンツを読み込む RootElement が作成されます。これらは JsonElement コンストラクターを使用して作成されます。このコンストラクターは、末尾に追加の引数を受け取り、コンテンツを読み込む URL を使用します。

var je = new JsonElement ("Dynamic Data", "https://tirania.org/tmp/demo.json");

もう 1 つの形式では、既に解析済みのローカル ファイルまたは既存の System.Json.JsonObject からデータが作成されます。


var je = JsonElement.FromFile ("json.sample");

using (var reader = File.OpenRead ("json.sample"))
    return JsonElement.FromJson (JsonObject.Load (reader) as JsonObject, arg);

マークアップの詳細については、MonoTouch.Dialog に含まれている README.markdown を参照してください。

コンストラクター

JsonElement(String, Group, String)

指定した URL にある Json ファイルの内容から入れ子になったコンテンツを含む RootElement を作成します。

JsonElement(String, Int32, Int32, String)

指定した URL にある Json ファイルの内容から入れ子になったコンテンツを含む RootElement を作成します。

JsonElement(String, String)

指定した URL にある Json ファイルの内容から入れ子になったコンテンツを含む RootElement を作成します。

フィールド

Caption

この指定された要素に表示するキャプション

(継承元 Element)
createOnSelected

RootElement がタップされたときに呼び出されるデリゲート。

(継承元 RootElement)
NeedColorUpdate

IColorizeBackground を実装するセルで WillDisplay メソッドを呼び出すように DialogViewController に指示するように設定します。

(継承元 RootElement)
Parent

コンテナー オブジェクトへのハンドル。

(継承元 Element)
TableView

現在の RootElement をレンダリングしている UITableView。

(継承元 RootElement)
UnevenRows

行のサイズがすべて同じかどうかを報告します。

(継承元 RootElement)
Url

要素が選択されている場合に読み込む URL。

プロパティ

CellKey

GetCell メソッドをオーバーライドするサブクラスも、このメソッドをオーバーライドする必要があります

(継承元 Element)
Count

この RootElement 内のセクションの数。

(継承元 RootElement)
DateKind

Json ソースからインスタンス化される RootElement。

IndexPath

特定の要素の IndexPath を返します。 これはリーフ要素に対してのみ有効です。要素がまだアタッチされていない場合は、最上位レベルの RootElement または の Section では機能しません。

(継承元 Element)
Item[Int32]

指定したインデックス位置にあるセクションを返します。

(継承元 RootElement)
Item[String]

"id" プロパティがキーと同じ値に設定されている Json ディクショナリから特定の要素を検索します

RadioSelected

ルート全体で現在選択されているラジオ項目。

(継承元 RootElement)

メソッド

Add(IEnumerable<Section>)

IEnumerable 内のすべてのセクションをこのルート要素に追加します。

(継承元 RootElement)
Add(Section)

この RootElement に新しいセクションを追加します

(継承元 RootElement)
Clear()

この RootElement からすべてのセクションを削除します。

(継承元 RootElement)
Deselected(DialogViewController, UITableView, NSIndexPath)

Json ソースからインスタンス化される RootElement。

(継承元 Element)
Dispose()

Json ソースからインスタンス化される RootElement。

(継承元 Element)
Dispose(Boolean)

この RootElement とその子によって保持されているリソースを解放します。

(継承元 RootElement)
FromFile(String)

指定したパスにある Json ファイルの内容から、入れ子になったコンテンツを含む RootElement を作成します。

FromFile(String, Object)

指定したパスにある Json ファイルの内容から、入れ子になったコンテンツを含む RootElement を作成します。

FromJson(JsonElement, JsonObject, Object)

Json オブジェクトの内容から入れ子になったコンテンツを含む RootElement を作成します。

FromJson(JsonObject)

Json オブジェクトの内容から入れ子になったコンテンツを含む RootElement を作成します。

FromJson(JsonObject, Object)

Json オブジェクトの内容から入れ子になったコンテンツを含む RootElement を作成します。

GetActiveCell()

Json ソースからインスタンス化される RootElement。

(継承元 Element)
GetCell(UITableView)

Json ソースからインスタンス化される RootElement。

GetContainerTableView()

Json ソースからインスタンス化される RootElement。

(継承元 Element)
GetImmediateRootElement()

セルがアタッチされている場合は、直ちに RootElement が返されます

(継承元 Element)
Insert(Int32, Section)

RootElement に新しいセクションを挿入します

(継承元 RootElement)
Insert(Int32, UITableViewRowAnimation, Section[])

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
MakeViewController()

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
Matches(String)

セルが指定されたテキストと一致するかどうかを判断するために呼び出されるメソッド。null 値または空の文字列で呼び出されることはありません。

(継承元 Element)
Prepare()

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
PrepareDialogViewController(UIViewController)

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
Reload(Element, UITableViewRowAnimation)

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
Reload(Section, UITableViewRowAnimation)

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
Remove(Section)

既定のアニメーションを使用して、指定したセクションをこの RootElement から削除します。

(継承元 RootElement)
Remove(Section, UITableViewRowAnimation)

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
RemoveAt(Int32)

既定のアニメーションを使用して、指定した場所にあるセクションを削除します。

(継承元 RootElement)
RemoveAt(Int32, UITableViewRowAnimation)

Json ソースからインスタンス化される RootElement。

(継承元 RootElement)
Selected(DialogViewController, UITableView, NSIndexPath)

Json ソースからインスタンス化される RootElement。

Summary()

このオブジェクトによって表される値の概要を返します。これは、子オブジェクトを含む RootElement の結果としてレンダリングするのに適しています。

(継承元 Element)

明示的なインターフェイスの実装

IEnumerable.GetEnumerator()

RootElement 内のすべてのセクションを返す列挙子。

(継承元 RootElement)
IEnumerable<Section>.GetEnumerator()

この RootElement 内のすべてのセクションを返す列挙子。

(継承元 RootElement)

適用対象