StyleCollection.Add(Style) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定 Style 物件附加到物件 StyleCollection 的末尾。
public:
int Add(System::Web::UI::WebControls::Style ^ style);
public int Add(System.Web.UI.WebControls.Style style);
member this.Add : System.Web.UI.WebControls.Style -> int
Public Function Add (style As Style) As Integer
參數
傳回
該風格被納入收藏的索引。
備註
使用該 Add 方法將指定的 Style 物件附加到物件的 StyleCollection 末尾。
要在特定索引位置將物件加入 Style 集合,請使用該 Insert 方法。