GridTableStylesCollection.IList.Add(Object) GridTableStylesCollection.IList.Add(Object) GridTableStylesCollection.IList.Add(Object) Method

定義

DataGridTableStyle 新增至這個集合中。Adds a DataGridTableStyle to this 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

要加入至集合的 DataGridTableStyleThe DataGridTableStyle to add to the collection.

傳回

新加入物件的索引。The index of the newly added object.

實作

例外狀況

value 已指派給 GridTableStylesCollectionvalue has already been assigned to a GridTableStylesCollection.

-或--or- DataGridTableStyle 中的 GridTableStylesCollection 具有的 MappingName 屬性值與 value 相同。A DataGridTableStyle in GridTableStylesCollection has the same MappingName property value as value.

適用於