Version

Search Results

Contains Method (WorkbookStyleCollection)

Determines whether a style is in the collection. Syntax Parameters style The style to locate in the collection. Return Value True if the style is found; False otherwise.

Count Property (WorkbookStyleCollection)

Gets the number of styles in the collection. Syntax Property Value The number of styles in the collection.

Item(Int32) Property

Gets the style at the specified index. Syntax Parameters index The zero-based index of the style to get. Property Value The style at the specified index. Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count.

Item(String) Property

Gets the style with the specified name. Syntax Parameters name The name of the style to get. Property Value The style with the specified name or null if no style with that name exists. Exceptions Exception Description System.ArgumentNullException name is null. Remarks Style names are compared case-insensitively.

Item Property (WorkbookStyleCollection)

Gets the style at the specified index. Overload List Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count.

NormalStyle Property

Gets the default style for the workbook. Syntax Remarks The normal style is the parent style for all cell and differential formats in the workbook, unless another parent style is specified.

Remove Method (WorkbookStyleCollection)

Removes the specified style from the collection. Syntax Parameters style The style to remove from the collection. Return Value True if the style was successfully removed; False if the style was not in the collection. Exceptions Exception Description System.InvalidOperationException style is the Normal style.

RemoveAt(Int32) Method

Removes the style at the specified index from the collection. Syntax Parameters index The zero-based index of the style in the collection. Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count. System.InvalidOperationException The sty...

RemoveAt Method (WorkbookStyleCollection)

Removes the style at the specified index from the collection. Overload List

Reset() Method

Resets the collection to its original state by clearing all styles and adding in preset built in styles. Syntax