語言

Style.MergeWith(Style) 方法

定義

結合指定的 Style 樣式屬性與該方法所呼叫的類別實例 Style 。

public:
 virtual void MergeWith(System::Web::UI::WebControls::Style ^ s);
public virtual void MergeWith(System.Web.UI.WebControls.Style s);
abstract member MergeWith : System.Web.UI.WebControls.Style -> unit
override this.MergeWith : System.Web.UI.WebControls.Style -> unit
Public Overridable Sub MergeWith (s As Style)

參數

s
Style

Style代表一種風格,需要結合。

例外狀況

備註

使用該 MergeWith 方法將指定的 Style 樣式屬性與該方法所呼叫的類別實例 Style 結合。

注意事項

除了已設定在 Style 類別目前實例上的屬性外,所有屬性都會被參數指定的Style相應屬性s取代。

適用於

另請參閱