Html32TextWriter.OnStyleAttributeRender 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷是否要將指定的 HTML 樣式屬性及其值寫入輸出數據流。
protected:
override bool OnStyleAttributeRender(System::String ^ name, System::String ^ value, System::Web::UI::HtmlTextWriterStyle key);
protected override bool OnStyleAttributeRender(string name, string value, System.Web.UI.HtmlTextWriterStyle key);
override this.OnStyleAttributeRender : string * string * System.Web.UI.HtmlTextWriterStyle -> bool
Protected Overrides Function OnStyleAttributeRender (name As String, value As String, key As HtmlTextWriterStyle) As Boolean
參數
- name
- String
HTML style 屬性用來寫入輸出串流。
- value
- String
與 HTML 風格屬性相關聯的值。
與 HtmlTextWriterStyle HTML 風格屬性相關的枚舉值。
傳回
true如果 HTML style 屬性及其值會被渲染到輸出串流中;否則,。 false
備註
此 OnStyleAttributeRender 方法支援的 HTML 樣式屬性數量比 OnStyleAttributeRender 它覆寫的方法少。