RenderTreeBuilder 類別

定義

提供建置專案集合 RenderTreeFrame 的方法。

public ref class RenderTreeBuilder sealed : IDisposable
public sealed class RenderTreeBuilder : IDisposable
type RenderTreeBuilder = class
    interface IDisposable
Public NotInheritable Class RenderTreeBuilder
Implements IDisposable
繼承
RenderTreeBuilder
實作

建構函式

RenderTreeBuilder()

提供建置專案集合 RenderTreeFrame 的方法。

方法

AddAttribute(Int32, RenderTreeFrame)

附加代表屬性的框架。

屬性與最近加入的專案相關聯。

AddAttribute(Int32, RenderTreeFrame)

附加代表屬性的框架。

屬性與最近加入的專案相關聯。

AddAttribute(Int32, String)

附加圖文框,代表具有值 'true' 的 bool 值屬性。

屬性與最近加入的專案相關聯。

AddAttribute(Int32, String, Boolean)

附加代表 bool 值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 false ,且目前元素不是元件,則會省略框架。

AddAttribute(Int32, String, EventCallback)

附加代表屬性的 EventCallback 框架。

屬性與最近加入的專案相關聯。 如果值為 null ,且目前元素不是元件,則會省略框架。

AddAttribute(Int32, String, MulticastDelegate)

附加代表委派值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 null ,且目前元素不是元件,則會省略框架。

AddAttribute(Int32, String, Object)

附加代表字串值屬性的框架。 屬性與最近加入的專案相關聯。 如果值為 ,或 Booleannullfalse 和目前元素不是元件,則會省略框架。

AddAttribute(Int32, String, String)

附加代表字串值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 null ,且目前元素不是元件,則會省略框架。

AddAttribute<TArgument>(Int32, String, EventCallback<TArgument>)

附加代表屬性的 EventCallback 框架。

屬性與最近加入的專案相關聯。 如果值為 null ,且目前元素不是元件,則會省略框架。

AddComponentParameter(Int32, String, Object)

附加代表元件參數的框架。

AddComponentReferenceCapture(Int32, Action<Object>)

附加框架,代表擷取父元件的參考的指令。

AddComponentRenderMode(IComponentRenderMode)

加入框架,指出封入元件框架上的轉譯模式。

AddContent(Int32, MarkupString)

附加代表標記內容的框架。

AddContent(Int32, Nullable<MarkupString>)

附加代表標記內容的框架。

AddContent(Int32, Object)

附加代表文字內容的框架。

AddContent(Int32, RenderFragment)

附加代表任意內容片段的畫面。

AddContent(Int32, String)

附加代表文字內容的框架。

AddContent<TValue>(Int32, RenderFragment<TValue>, TValue)

附加代表任意內容片段的畫面。

AddElementReferenceCapture(Int32, Action<ElementReference>)

附加框架,代表擷取父元素參考的指令。

AddMarkupContent(Int32, String)

附加代表標記內容的框架。

AddMultipleAttributes(Int32, IEnumerable<KeyValuePair<String,Object>>)

加入代表具有相同序號之多個屬性的畫面。

AddNamedEvent(String, String)

將名稱指派給封入專案中的事件。

Clear()

清除產生器。

CloseComponent()

將先前附加的元件框架標示為已關閉。 對這個方法的呼叫必須與 對 的 OpenComponent<TComponent>(Int32) 呼叫進行平衡。

CloseElement()

將先前附加的專案框架標示為已關閉。 對這個方法的呼叫必須與 對 的 OpenElement(Int32, String) 呼叫進行平衡。

CloseRegion()

將先前附加的區域框架標示為已關閉。 對這個方法的呼叫必須與 對 的 OpenRegion(Int32) 呼叫進行平衡。

Dispose()

提供建置專案集合 RenderTreeFrame 的方法。

GetFrames()

RenderTreeFrame 回已附加的值。

OpenComponent(Int32, Type)

附加代表子元件的框架。

OpenComponent<TComponent>(Int32)

附加代表子元件的框架。

OpenElement(Int32, String)

附加代表元素的框架,也就是其他框架的容器。 若要讓 RenderTreeBuilder 狀態有效,您也必須在附加新元素的子框架之後立即呼叫 CloseElement()

OpenRegion(Int32)

附加代表框架區域的框架。

SetKey(Object)

將指定的索引鍵值指派給目前的專案或元件。

SetUpdatesAttributeName(String)

表示上述屬性代表事件處理常式,其執行會以名稱 updatesAttributeName 更新屬性。

轉譯系統會使用此資訊來判斷接收事件處理常式呼叫時,是否要接受其他屬性的值更新。

明確介面實作

IDisposable.Dispose()

提供建置專案集合 RenderTreeFrame 的方法。

擴充方法

AddEventPreventDefaultAttribute(RenderTreeBuilder, Int32, String, Boolean)

附加代表指令的框架,以防止指定事件的預設動作。

AddEventStopPropagationAttribute(RenderTreeBuilder, Int32, String, Boolean)

附加表示指令的框架,以阻止指定的事件傳播超過目前專案。

適用於