語言

PanelStyle.MergeWith(Style) 方法

定義

將指定 Style 物件的樣式設定與目前類別實例 PanelStyle 結合。

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

參數

s
Style

一個 Style 代表樣式設定,要與物件 PanelStyle 結合的物件。

備註

你可以用這個 MergeWith 方法將指定 Style 物件的樣式設定與目前類別實例 PanelStyle 結合起來。

此 MergeWith 方法會從指定 Style 物件複製非空白元素, s但不會替換物件中 PanelStyle 任何現有的樣式設定。 要將物件中的 PanelStyle 樣式設定替換成 中的樣式設定 s,請使用該 CopyFrom 方法。

適用於

另請參閱