EditorPartChrome.RenderEditorPart(HtmlTextWriter, EditorPart) 方法

定义

呈现完整的 EditorPart 控件及其所有部分。

public:
 virtual void RenderEditorPart(System::Web::UI::HtmlTextWriter ^ writer, System::Web::UI::WebControls::WebParts::EditorPart ^ editorPart);
public virtual void RenderEditorPart (System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.EditorPart editorPart);
abstract member RenderEditorPart : System.Web.UI.HtmlTextWriter * System.Web.UI.WebControls.WebParts.EditorPart -> unit
override this.RenderEditorPart : System.Web.UI.HtmlTextWriter * System.Web.UI.WebControls.WebParts.EditorPart -> unit
Public Overridable Sub RenderEditorPart (writer As HtmlTextWriter, editorPart As EditorPart)

参数

writer
HtmlTextWriter

用于接收 editorPart 内容的 HtmlTextWriter

editorPart
EditorPart

当前正在呈现的控件。

例外

editorPart 引用的控件为 null

注解

方法 RenderEditorPart 呈现具有页眉、内容和页脚的完整 EditorPart 控件。 重写此方法可让开发人员完全以编程方式控制呈现 的所有方面 editorPart;因此,重写此方法相当复杂。

适用于