Share via


CollectionContainer.Collection 属性

定义

获取或设置要添加的集合。

public:
 property System::Collections::IEnumerable ^ Collection { System::Collections::IEnumerable ^ get(); void set(System::Collections::IEnumerable ^ value); };
public System.Collections.IEnumerable Collection { get; set; }
member this.Collection : System.Collections.IEnumerable with get, set
Public Property Collection As IEnumerable

属性值

要添加的集合。 默认值为空集合。

注解

依赖项属性信息

标识符字段 CollectionProperty
元数据属性设置为 true

XAML 文本用法

在 XAML 中,可以使用 Binding 语法绑定到集合。 有关详细信息,请参阅 Binding 类型。

适用于