JsonElement 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 Json 源实例化的 RootElement。
public class JsonElement : MonoTouch.Dialog.RootElement
	type JsonElement = class
    inherit RootElement
		- 继承
 
注解
JsonElement 是 RootElement 的子元素,它扩展了 RootElement,以便能够从本地或远程 URL 加载嵌套子元素的内容。
JsonElement 是一个 RootElement,可以以两种形式实例化。 一个版本创建一个将按需加载内容的 RootElement,这些内容是使用 JsonElement 构造函数创建的,该构造函数在末尾采用额外的参数,URL 用于从中加载内容:
var je = new JsonElement ("Dynamic Data", "https://tirania.org/tmp/demo.json");
 另一种形式基于已分析的本地文件或现有的 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 | 
		 设置为指示 DialogViewController 在实现 IColorizeBackground 的单元格上调用 WillDisplay 方法。 (继承自 RootElement) | 
        	
| Parent | 
		 容器对象的句柄。 (继承自 Element) | 
        	
| TableView | 
		 正在呈现当前 RootElement 的 UITableView。 (继承自 RootElement) | 
        	
| UnevenRows | 
		 报告行的大小是否相同。 (继承自 RootElement) | 
        	
| Url | 
		 选择元素时要加载的 URL。  | 
        	
属性
| CellKey | 
		 替代 GetCell 方法的子类也应重写此方法 (继承自 Element) | 
        	
| Count | 
		 此 RootElement 中的节数。 (继承自 RootElement) | 
        	
| DateKind | 
		 从 Json 源实例化的 RootElement。  | 
        	
| IndexPath | 
		 返回给定元素的 IndexPath。 这仅适用于叶元素,如果尚未附加元素,则不适用于 toplevel RootElement 或 的 Section。 (继承自 Element) | 
        	
| Item[Int32] | 
		 返回指定索引处的 节。 (继承自 RootElement) | 
        	
| Item[String] | 
		 从 Json 字典中查找其“id”属性设置为与键相同的值的特定元素  | 
        	
| 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, Object) | 
		 从指定路径处的 Json 文件的内容创建包含其嵌套内容的 RootElement。  | 
        	
| FromFile(String) | 
		 从指定路径处的 Json 文件的内容创建包含其嵌套内容的 RootElement。  | 
        	
| FromJson(JsonElement, JsonObject, Object) | 
		 从 Json 对象的内容创建包含其嵌套内容的 RootElement。  | 
        	
| FromJson(JsonObject, Object) | 
		 从 Json 对象的内容创建包含其嵌套内容的 RootElement。  | 
        	
| FromJson(JsonObject) | 
		 从 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, UITableViewRowAnimation) | 
		 从 Json 源实例化的 RootElement。 (继承自 RootElement) | 
        	
| Remove(Section) | 
		 使用默认动画从此 RootElement 中删除指定的节。 (继承自 RootElement) | 
        	
| RemoveAt(Int32, UITableViewRowAnimation) | 
		 从 Json 源实例化的 RootElement。 (继承自 RootElement) | 
        	
| RemoveAt(Int32) | 
		 使用默认动画删除指定位置的节。 (继承自 RootElement) | 
        	
| Selected(DialogViewController, UITableView, NSIndexPath) | 
		 从 Json 源实例化的 RootElement。  | 
        	
| Summary() | 
		 返回此 对象表示的值的摘要,适合作为具有子对象的 RootElement 的结果呈现。 (继承自 Element) | 
        	
显式接口实现
| IEnumerable.GetEnumerator() | 
		 返回 RootElement 中所有节的枚举器。 (继承自 RootElement) | 
        	
| IEnumerable<Section>.GetEnumerator() | 
		 返回此 RootElement 中的所有节的枚举器。 (继承自 RootElement) |