Class CollectionExtended<T>
- Namespace
- Spire.Xls.Core.Spreadsheet.Collections
- Assembly
- Spire.XLS.dll
public class CollectionExtended<T> : CollectionBase<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IExcelApplication, ICloneParent
Type Parameters
T
- Inheritance
-
CollectionExtended<T>
- Implements
-
IList<T>ICollection<T>IEnumerable<T>
- Derived
- Inherited Members
Properties
Parent
public object Parent { get; }
Property Value
Methods
ChangeName(IDictionary, XlsEventArgs)
protected static void ChangeName(IDictionary hashNames, XlsEventArgs e)
Parameters
hashNames
IDictionarye
XlsEventArgs
Clone(object)
Creates copy of the collection.
public virtual object Clone(object parent)
Parameters
parent
objectParent object for the new collection.
Returns
- object
A copy of the collection.
EnsureCapacity(int)
Enlarges internal storage if necessary.
public void EnsureCapacity(int size)
Parameters
size
intRequired size.
FindParent(Type)
protected object FindParent(Type parentType)
Parameters
parentType
Type
Returns
FindParent(Type, bool)
protected object FindParent(Type parentType, bool bCheckSubclasses)
Parameters
Returns
GenerateDefaultName(ICollection<T>, string)
public static string GenerateDefaultName(ICollection<T> namesCollection, string strStart)
Parameters
namesCollection
ICollection<T>strStart
string
Returns
GenerateDefaultName(ICollection, string)
protected static string GenerateDefaultName(ICollection namesCollection, string strStart)
Parameters
namesCollection
ICollectionstrStart
string
Returns
GenerateDefaultName(string, params ICollection[])
protected static string GenerateDefaultName(string strStart, params ICollection[] arrCollections)
Parameters
strStart
stringarrCollections
ICollection[]
Returns
OnClear()
protected override void OnClear()
OnClearComplete()
protected override void OnClearComplete()
OnInsert(int, T)
protected override void OnInsert(int index, T value)
Parameters
index
intvalue
T
OnInsertComplete(int, T)
protected override void OnInsertComplete(int index, T value)
Parameters
index
intvalue
T
OnRemove(int, T)
protected override void OnRemove(int index, T value)
Parameters
index
intvalue
T
OnRemoveComplete(int, T)
protected override void OnRemoveComplete(int index, T value)
Parameters
index
intvalue
T
OnSet(int, T, T)
protected override void OnSet(int index, T oldValue, T newValue)
Parameters
index
intoldValue
TnewValue
T
OnSetComplete(int, T, T)
protected override void OnSetComplete(int index, T oldValue, T newValue)
Parameters
index
intoldValue
TnewValue
T
SetParent(object)
protected void SetParent(object parent)
Parameters
parent
object
Events
Changed
public event EventHandler Changed