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.
Gets the number of styles in the collection. Syntax Property Value The number of styles in the collection.
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.
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.
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.
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.
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.
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...
Removes the style at the specified index from the collection. Overload List
Resets the collection to its original state by clearing all styles and adding in preset built in styles. Syntax