StyleCollection.Add(Style) 方法

定义

将指定的 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

参数

style
Style

Style要添加到集合的对象。

返回

样式添加到集合中的索引。

注解

Add使用该方法将指定的Style对象追加到对象的末尾StyleCollection

若要将对象添加到 Style 集合中的特定索引位置,请使用 Insert 该方法。

适用于

另请参阅