Methods

add() → Number

Adds a Style to the collection. If using this method to create a new style and the style name is set, a new style will be added to the style dialog of MS Excel. To avoid this, you can leave the style name blank. NOTE: This property is now obsolete. Instead, please use Workbook.CreateStyle() to create and manipulate style for workbook instead. This property will be removed 12 months later since December 2014. Aspose apologizes for any inconvenience you may have experienced.

Returns

Number Style object index.

createBuiltinStyle(type) → Style

Creates built-in style by given type.

Parameter

Name Type Optional Description

type

Number

 

BuiltinStyleType

Returns

Style style object

get(index) → Style

Gets the Style element at the specified index.

Parameter

Name Type Optional Description

index

Number

 

The zero based index of the element.

Returns

Style The element at the specified index.

get(name) → Style

Gets the Style element with the specified name.

Parameter

Name Type Optional Description

name

String

 

Style name

Returns

Style The element with the specified name.

getCount()

Gets the count of elements in the collection.

getThemeStyle(themeColorType, tint) → Style

Gets the theme style.

Parameters

Name Type Optional Description

themeColorType

Number

 

ThemeColorType

tint

Number

 

The tint value.

Returns

Style