Share via


UIElementCollection.Append(UIElement) 方法

定义

将新项添加到集合。

public:
 virtual void Append(UIElement ^ value) = IVector<UIElement ^>::Append;
void Append(UIElement const& value);
public void Append(UIElement value);
function append(value)
Public Sub Append (value As UIElement)

参数

value
UIElement

要添加的新项。

实现

注解

Append 将项添加到集合的末尾。 如果要将项插入集合的开头或中间,请使用 InsertAt

重要

如果要使用 C# 或 Microsoft Visual Basic 进行编程,请不要使用此方法;请改用 .NET Add 方法。 方法 System.Linq.Enumerable.Append<> 可能显示在 IntelliSense 中,但 XAML 不支持此方法,并且不会有任何效果。

适用于

另请参阅