SubMenuStyle.MergeWith(Style) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
結合指定 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)
參數
備註
使用該 MergeWith 方法將指定 Style 物件的樣式屬性與該方法所呼叫物件的 SubMenuStyle 樣式屬性結合。
注意事項
此方法透過將目前物件中未設定 SubMenuStyle 的每個屬性與指定 Style 物件中對應的值連結。 只有尚未設定的屬性才會被更新。 若指定 Style 物件中的屬性未被設定,目前 SubMenuStyle 物件中對應的屬性不會改變。