Search
IStyle Members
Methods
 


Represents the style of an element.

The following tables list the members exposed by the IStyle type.

 Public Methods

  Name Description

getBackground

Gets the background.

getBarBrush

Gets the brush used to draw data bars.

getBorderBottomColor

Gets the color of the bottom border.

getBorderBottomSize

Gets the thickness of the bottom border.

getBorderBottomStyle

Gets the style of the bottom border.

getBorderLeftColor

Gets the color of the left border.

getBorderLeftSize

Gets the thickness of the left border.

getBorderLeftStyle

Gets the style of the left border.

getBorderRightColor

Gets the color of the right border.

getBorderRightSize

Gets the thickness of the right border.

getBorderRightStyle

Gets the style of the right border.

getBorderTopColor

Gets the color of the top border.

getBorderTopSize

Gets the thickness of the top border.

getBorderTopStyle

Gets the style of the top border.

getConditionalFormats

Gets a list with the conditional formats associated with this style.

getFontBold

Gets a value indicating whether the element's text is bold.

getFontDoubleUnderline

Gets a value indicating whether the element's text is double underlined.

getFontItalic

Gets a value indicating whether the element's text is italic.

getFontName

Gets the name of the font of the element's text.

getFontSize

Gets the size of the font of the element's text.

getFontStrikeout

Gets a value indicating whether the element's text is with a line through the middle.

getFontUnderline

Gets a value indicating whether the element's text is underlined.

getFormat

Gets the format of the element's contents.

getHorizontalAlignment

Gets the horizontal alignment of the element's contents.

getId

Gets the style identifier.

getIndent

Gets the indentation of the element's text.

getPaddingBottom

Gets the bottom padding of the element's contents.

getPaddingLeft

Gets the left padding of the element's contents.

getPaddingRight

Gets the right padding of the element's contents.

getPaddingTop

Gets the top padding of the element's contents.

getPrimaryDiagonalColor

Gets the color of the primary diagonal.

getPrimaryDiagonalSize

Gets the thickness of the primary diagonal.

getPrimaryDiagonalStyle

Gets the style of the primary diagonal.

getRotation

Gets the orientation of the element's contents.

getSecondaryDiagonalColor

Gets the color of the secondary diagonal.

getSecondaryDiagonalSize

Gets the thickness of the secondary diagonal.

getSecondaryDiagonalStyle

Gets the style of the secondary diagonal.

getTextColor

Gets the color of the element's text.

getValidation

Gets an object that can be used to specify validation rules.

getVerticalAlignment

Gets the vertical alignment of the element's contents.

getWorksheet

Gets the worksheet this style is associated with.

getWrapText

Gets a value indicating whether to wrap the element's text.

reset

Resets the style to the default style.

resetConditionalFormats

Resets the conditional formats associated with this style.

resetValidation

Resets the validation associated with this style to the default validation.

setBackground

Sets the background.

setBarBrush

Sets the brush used to draw data bars.

setBorderBottomColor

Sets the color of the bottom border.

setBorderBottomSize

Sets the thickness of the bottom border.

setBorderBottomStyle

Sets the style of the bottom border.

setBorderLeftColor

Sets the color of the left border.

setBorderLeftSize

Sets the thickness of the left border.

setBorderLeftStyle

Sets the style of the left border.

setBorderRightColor

Sets the color of the right border.

setBorderRightSize

Sets the thickness of the right border.

setBorderRightStyle

Sets the style of the right border.

setBorderTopColor

Sets the color of the top border.

setBorderTopSize

Sets the thickness of the top border.

setBorderTopStyle

Sets the style of the top border.

setFontBold

Sets a value indicating whether the element's text is bold.

setFontDoubleUnderline

Sets a value indicating whether the element's text is double underlined.

setFontItalic

Sets a value indicating whether the element's text is italic.

setFontName

Sets the name of the font of the element's text.

setFontSize

Sets the size of the font of the element's text.

setFontStrikeout

Sets a value indicating whether the element's text is with a line through the middle.

setFontUnderline

Sets a value indicating whether the element's text is underlined.

setFormat

Sets the format of the element's contents.

setHorizontalAlignment

Sets the horizontal alignment of the element's contents.

setId

Sets the style identifier.

setIndent

Sets the indentation of the element's text.

setPaddingBottom

Sets the bottom padding of the element's contents.

setPaddingLeft

Sets the left padding of the element's contents.

setPaddingRight

Sets the right padding of the element's contents.

setPaddingTop

Sets the top padding of the element's contents.

setPrimaryDiagonalColor

Sets the color of the primary diagonal.

setPrimaryDiagonalSize

Sets the thickness of the primary diagonal.

setPrimaryDiagonalStyle

Sets the style of the primary diagonal.

setRotation

Sets the orientation of the element's contents

setSecondaryDiagonalColor

Sets the color of the secondary diagonal.

setSecondaryDiagonalSize

Sets the thickness of the secondary diagonal.

setSecondaryDiagonalStyle

Sets the style of the secondary diagonal.

setTextColor

Sets the color of the element's text.

setVerticalAlignment

Sets the vertical alignment of the element's contents.

setWrapText

Sets a value indicating whether to wrap the element's text.

 See Also