Share via


TreeNodeStyleCollection.Add(TreeNodeStyle) 方法

定義

將指定的 TreeNodeStyle 物件附加至 TreeNodeStyleCollection 物件的結尾。

public:
 int Add(System::Web::UI::WebControls::TreeNodeStyle ^ style);
public int Add (System.Web.UI.WebControls.TreeNodeStyle style);
member this.Add : System.Web.UI.WebControls.TreeNodeStyle -> int
Public Function Add (style As TreeNodeStyle) As Integer

參數

style
TreeNodeStyle

要附加的 TreeNodeStyle

傳回

插入新 TreeNodeStyle 的位置。

備註

使用 方法, Add 將指定的 TreeNodeStyle 物件附加至 物件的結尾 TreeNodeStyleCollection

注意

TreeNodeStyleCollection可讓您新增 null 、以及重複 TreeNodeStyle 的物件。

適用於

另請參閱