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对象。

适用于

另请参阅