GridColumnStylesCollection.IList.Add(Object) GridColumnStylesCollection.IList.Add(Object) GridColumnStylesCollection.IList.Add(Object) Method

定义

将对象添加到集合。Adds an object to the collection.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

参数

value
Object Object Object

要添加到集合中的对象。The object to be added to the collection. 该值可以为 nullThe value can be null.

返回

已添加值处的索引。The index at which the value has been added.

实现

异常

无法将 value 强制转换为 DataGridColumnStylevalue cannot be cast to a DataGridColumnStyle.

适用于