Table of Contents

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
Derived
Inherited Members

Properties

Parent

public object Parent { get; }

Property Value

object

Methods

ChangeName(IDictionary, XlsEventArgs)

protected static void ChangeName(IDictionary hashNames, XlsEventArgs e)

Parameters

hashNames IDictionary
e XlsEventArgs

Clone(object)

Creates copy of the collection.

public virtual object Clone(object parent)

Parameters

parent object

Parent 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 int

Required size.

FindParent(Type)

protected object FindParent(Type parentType)

Parameters

parentType Type

Returns

object

FindParent(Type, bool)

protected object FindParent(Type parentType, bool bCheckSubclasses)

Parameters

parentType Type
bCheckSubclasses bool

Returns

object

GenerateDefaultName(ICollection<T>, string)

public static string GenerateDefaultName(ICollection<T> namesCollection, string strStart)

Parameters

namesCollection ICollection<T>
strStart string

Returns

string

GenerateDefaultName(ICollection, string)

protected static string GenerateDefaultName(ICollection namesCollection, string strStart)

Parameters

namesCollection ICollection
strStart string

Returns

string

GenerateDefaultName(string, params ICollection[])

protected static string GenerateDefaultName(string strStart, params ICollection[] arrCollections)

Parameters

strStart string
arrCollections ICollection[]

Returns

string

OnClear()

protected override void OnClear()

OnClearComplete()

protected override void OnClearComplete()

OnInsert(int, T)

protected override void OnInsert(int index, T value)

Parameters

index int
value T

OnInsertComplete(int, T)

protected override void OnInsertComplete(int index, T value)

Parameters

index int
value T

OnRemove(int, T)

protected override void OnRemove(int index, T value)

Parameters

index int
value T

OnRemoveComplete(int, T)

protected override void OnRemoveComplete(int index, T value)

Parameters

index int
value T

OnSet(int, T, T)

protected override void OnSet(int index, T oldValue, T newValue)

Parameters

index int
oldValue T
newValue T

OnSetComplete(int, T, T)

protected override void OnSetComplete(int index, T oldValue, T newValue)

Parameters

index int
oldValue T
newValue T

SetParent(object)

protected void SetParent(object parent)

Parameters

parent object

Events

Changed

public event EventHandler Changed

Event Type

EventHandler