Click or drag to resize

StylesCollection Methods

The StylesCollection type exposes the following members.

Methods
Name Description
Public method Add(String)
Adds a new style.
Public method Add(CellStyle)
Adds a style.
Protected method Add(IStyle)
Adds a style to the collection.
(Inherited from XlsStylesCollection .)
Public method Clear
Removes all objects from the System.Collections.CollectionBase instance.
(Inherited from CollectionBase T .)
Public method Clone
Creates copy of the current instance.
(Inherited from XlsStylesCollection .)
Public method Static member Compare
Compares two CellStyle objects for equality based on their properties.
Public method Contains(T)
Determines whether the collection contains a specific item.
(Inherited from CollectionBase T .)
Public method Contains(String)
Check collection contains style with specified name.
(Inherited from XlsStylesCollection .)
Public method Contains(CellStyle)
Style which is in collection.
Protected method ContainsSameStyle
Determines whether the current object contains the same style as the specified style.
(Inherited from XlsStylesCollection .)
Public method CopyTo
Copies the elements of the collection to an array, starting at a particular array index.
(Inherited from CollectionBase T .)
Protected method CreateBuiltInStyle
Creates a built-in style for an Excel document with the specified name.
(Inherited from XlsStylesCollection .)
Public method EnsureCapacity
Enlarges internal storage if necessary.
(Inherited from CollectionExtended T .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Protected method FindParent(Type)
Method used to find parent within a specific type.
(Inherited from CollectionExtended T .)
Protected method FindParent(Type, Boolean)
Method used to find parent within a specific type.
(Inherited from CollectionExtended T .)
Public method GetDefaultStyle
Creates built in style.
Public method GetEnumerator
Returns an enumerator that iterates through this instance.
(Inherited from CollectionBase T .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method IndexOf
Returns the zero-based index of the first occurrence of a specified item within the collection.
(Inherited from CollectionBase T .)
Public method Insert
Inserts an element into the list at the specified index.
(Inherited from CollectionBase T .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnClear
OnClear is invoked before Clear behavior.
(Inherited from CollectionExtended T .)
Protected method OnClearComplete
OnClear is invoked after Clear behavior.
(Inherited from CollectionExtended T .)
Protected method OnInsert
Performs additional processes before inserting a new element into the collection.
(Inherited from CollectionExtended T .)
Protected method OnInsertComplete
Performs additional processes after inserting a new element into the collection.
(Inherited from CollectionExtended T .)
Protected method OnRemove
Performs additional processes before removing an element from the collection.
(Inherited from CollectionExtended T .)
Protected method OnRemoveComplete
Performs additional processes after removing an element from the collection.
(Inherited from CollectionExtended T .)
Protected method OnSet
Performs additional processes before setting a value in the collection.
(Inherited from CollectionExtended T .)
Protected method OnSetComplete
Performs additional processes after setting a value in the collection.
(Inherited from CollectionExtended T .)
Public method Remove(T)
Removes the first occurrence of a specific object from the collection.
(Inherited from CollectionBase T .)
Public method Remove(String)
Removes style from the colleciton.
(Inherited from XlsStylesCollection .)
Public method Remove(CellStyle)
Removes the specified CellStyle from the collection.
Public method RemoveAt
Removes the element at the specified index of this instance.
(Inherited from CollectionBase T .)
Public method Replace
Replaces the current cell style with the provided style.
Protected method SetParent
Sets parent object for class.
(Inherited from CollectionExtended T .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method UpdateStyleRecords
Updates style record of each style in the collection according to the xf indexes.
(Inherited from XlsStylesCollection .)
Top
See Also