語言

SubMenuStyle.MergeWith(Style) 方法

定義

結合指定 Style 物件的樣式屬性與目前類別實例 SubMenuStyle 的屬性。

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 用來組合設定的物件。

備註

使用該 MergeWith 方法將指定 Style 物件的樣式屬性與該方法所呼叫物件的 SubMenuStyle 樣式屬性結合。

注意事項

此方法透過將目前物件中未設定 SubMenuStyle 的每個屬性與指定 Style 物件中對應的值連結。 只有尚未設定的屬性才會被更新。 若指定 Style 物件中的屬性未被設定,目前 SubMenuStyle 物件中對應的屬性不會改變。

適用於

另請參閱