Namespace EasyXLS
Class ExcelStyle
System.Object
EasyXLS.ExcelStyle
public class ExcelStyle
extends System.Object
This class stores the style information like font name, font size, font bold, font italic, word wrap,
font underline style, font subscript, font superscript, font strikethrough, background color,
foreground color, horizontal alignment, vertical alignment, number or date format,
cell locked or hidden, shrink, border type, border color.
A style can be assigned to a cell, column or a range of cells.
-
Constructor Summary
ConstructorsConstructorDescriptionDefines an instance of the style.ExcelStyle(System.Drawing.Color background) Defines an instance of the style that is initialized with background color.ExcelStyle(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground) Defines an instance of the style that is initialized with font settings.ExcelStyle(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground, System.Drawing.Color background) Defines an instance of the style that is initialized with font and background settings. -
Method Summary
Modifier and TypeMethodDescriptionClone()Creates and returns a copy of this object.System.Drawing.ColorReturns the background color of the style.Returns the background color of the style.System.Drawing.ColorReturns the color of the bottom border.intReturns the style of the bottom border.Returns the color of the bottom border.System.StringReturns the data type of the style.System.Drawing.ColorReturns the color of the diagonal border.intReturns the style of the diagonal down border.Returns the color of the diagonal border.intReturns the style of the diagonal up border.System.StringgetFont()Returns the name of the style font.intReturns the size of the style font.System.Drawing.ColorReturns the foreground color of the style.Returns the foreground color of the style.System.StringReturns the number/date format of the style.System.Drawing.ColorReturns the first color of the gradient fill.System.Drawing.ColorReturns the second color of the gradient fill.intReturns the shading style of the gradient fill.Returns the first color of the gradient fill.Returns the second color of the gradient fill.System.StringReturns the horizontal alignment of the style.intReturns the indent of the style.System.Drawing.ColorReturns the color of the left border.intReturns the style of the left border.Returns the color of the left border.intReturns the pattern of the style.System.Drawing.ColorReturns the pattern color of the style.Returns the pattern color of the style.System.Drawing.ColorReturns the color of the right border.intReturns the style of the right border.Returns the color of the right border.intReturns the text direction of the styleintReturns the text rotation of the style.System.Drawing.ColorReturns the color of the top border.intReturns the style of the top border.Returns the color of the top border.intReturns the underline style of the style font.System.StringReturns the vertical alignment of the style.boolReturns true if the font is the body font, false otherwise.boolIsBold()Returns the bold setting of the style font.boolIsEqual(ExcelStyle xlsCompare) Compares two styles.boolReturns true if the font is the headings font, false otherwise.boolReturns the hidden setting of the style.boolIsItalic()Returns the italic setting of the style font.boolReturns the justify distributed setting of the style font.boolIsLocked()Returns the locked setting of the style.boolReturns the merge cell option of the styleboolIsShrink()Returns the shrink setting of the style.boolReturns the strikethrough setting of the style font.boolReturns the subscript setting of the style font.boolReturns the superscript setting of the style font.boolIsWrap()Returns the wrap setting of the style.voidsetBackground(ThemeColor themeColor) Sets the background color of the style.
This method is overridden as setBackground_2 in COM+ version of EasyXLS.voidsetBackground(System.Drawing.Color color) Sets the background color of the style.voidSets the body font.voidsetBold(bool isBold) Sets the bold option of the style font.voidsetBorderColors(ThemeColor borderTop, ThemeColor borderBottom, ThemeColor borderLeft, ThemeColor borderRight) Sets the border colors of the style.
This method is overridden as setBorderColors_2 in COM+ version of EasyXLS.voidsetBorderColors(System.Drawing.Color borderTop, System.Drawing.Color borderBottom, System.Drawing.Color borderLeft, System.Drawing.Color borderRight) Sets the border colors of the style.voidsetBorderStyles(int borderTop, int borderBottom, int borderLeft, int borderRight) Sets the border styles of the style.voidsetBottomColor_Border(ThemeColor themeColor) Sets the color of the bottom border.
This method is overridden as setBottomColor_Border_2 in COM+ version of EasyXLS.voidsetBottomColor_Border(System.Drawing.Color color) Sets the color of the bottom border.voidsetBottomStyle_Border(int borderStyle) Sets the style of the bottom border.voidsetDataType(System.String dataType) Sets the data type of the style.voidsetDiagonalBorder(bool borderDiagonalUp, bool borderDiagonalDown, int borderStyle, ThemeColor borderColor) Sets the diagonal borders.
This method is overridden as setDiagonalBorder_2 in COM+ version of EasyXLS.voidsetDiagonalBorder(bool borderDiagonalUp, bool borderDiagonalDown, int borderStyle, System.Drawing.Color borderColor) Sets the diagonal borders.voidsetFont(System.String fontName) Sets the name of the style font.voidsetFontSize(int fontSize) Sets the size of the style font.voidsetForeground(ThemeColor themeColor) Sets the foreground color of the style.
This method is overridden as setForeground_2 in COM+ version of EasyXLS.voidsetForeground(System.Drawing.Color color) Sets the foreground color of the style.voidsetFormat(System.String format) Sets the number/date format of the style.voidsetGradientColor1(ThemeColor themeColor1) Sets the first color of the gradient fill.voidsetGradientColor1(System.Drawing.Color color1) Sets the first color of the gradient fill.voidsetGradientColor2(ThemeColor themeColor2) Sets the second color of the gradient fill.voidsetGradientColor2(System.Drawing.Color color2) Sets the second color of the gradient fill.voidsetGradientFill(ThemeColor themeColor1, ThemeColor themeColor2, int shadingStyle) Sets the gradient fill for the style.voidsetGradientFill(System.Drawing.Color color1, System.Drawing.Color color2, int shadingStyle) Sets the gradient fill for the style.voidsetGradientShadingStyle(int shadingStyle) Sets the shading style of the gradient fill.voidSets the headings font.voidsetHiddenFormula(bool isHidden) Sets the hidden option of the style.voidsetHorizontalAlignment(System.String horizontalAlignment) Sets the horizontal alignment of the style.voidsetIndent(int indent) Sets the indent of the style.voidsetItalic(bool isItalic) Sets the italic option of the style font.voidsetJustifyDistributed(bool isJustifyDistributed) Sets the justify distributed option of the style font.voidsetLeftColor_Border(ThemeColor themeColor) Sets the color of the left border.
This method is overridden as setLeftColor_Border_2 in COM+ version of EasyXLS.voidsetLeftColor_Border(System.Drawing.Color color) Sets the color of the left border.voidsetLeftStyle_Border(int borderStyle) Sets the style of the left border.voidsetLocked(bool isLocked) Sets the locked option of the style.voidsetPattern(int pattern) Sets the pattern of the style.voidsetPatternColor(ThemeColor themeColor) Sets the pattern color of the style.
This method is overridden as setPatternColor_2 in COM+ version of EasyXLS.voidsetPatternColor(System.Drawing.Color color) Sets the pattern color of the style.voidsetRightColor_Border(ThemeColor themeColor) Sets the color of the right border.
This method is overridden as setRightColor_Border_2 in COM+ version of EasyXLS.voidsetRightColor_Border(System.Drawing.Color color) Sets the color of the right border.voidsetRightStyle_Border(int borderStyle) Sets the style of the right border.voidsetShrink(bool isShrink) Sets the shrink option of the style.voidsetStrikethrough(bool isStrikethrough) Sets the strikethrough option of the style font.voidsetSubscript(bool isSubscript) Sets the subscript option of the style font.voidsetSuperscript(bool isSuperscript) Sets the superscript option of the style font.voidsetTextDirection(int textDirection) Sets the text direction of the style.voidsetTextRotation(int textRotation) Sets the text rotation of the style.voidsetTopColor_Border(ThemeColor themeColor) Sets the color of the top border.
This method is overridden as setTopColor_Border_2 in COM+ version of EasyXLS.voidsetTopColor_Border(System.Drawing.Color color) Sets the color of the top border.voidsetTopStyle_Border(int borderStyle) Sets the style of the top border.voidsetUnderlineStyle(int underlineStyle) Sets the underline style of the style font.voidsetVerticalAlignment(System.String verticalAlignment) Sets the vertical alignment of the style.voidsetWrap(bool isWrap) Sets the wrap option of the style.Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelStyle
public ExcelStyle()Defines an instance of the style. -
ExcelStyle
public ExcelStyle(System.Drawing.Color background) Defines an instance of the style that is initialized with background color.- Parameters:
background- the background color of the style
-
ExcelStyle
public ExcelStyle(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground) Defines an instance of the style that is initialized with font settings.- Parameters:
fontName- the name of the style fontfontSize- the size of the style fontisBold- the bold option of the style fontisItalic- the italic option of the style fontforeground- the foreground color of the style
-
ExcelStyle
public ExcelStyle(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground, System.Drawing.Color background) Defines an instance of the style that is initialized with font and background settings.- Parameters:
fontName- the name of the style fontfontSize- the size of the style fontisBold- the bold option of the style fontisItalic- the italic option of the style fontforeground- the foreground color of the stylebackground- the background color of the style
-
-
Method Details
-
getFormat
public System.String getFormat()Returns the number/date format of the style. Possible values are available inFormatclass.- Returns:
- the number/date format of the style
- See Also:
-
setFormat
public void setFormat(System.String format) Sets the number/date format of the style. Possible values are available inFormatclass.- Parameters:
format- the number/date format of the style- See Also:
-
getHorizontalAlignment
public System.String getHorizontalAlignment()Returns the horizontal alignment of the style. Possible values are available inAlignmentclass.- Returns:
- the horizontal alignment of the style
- See Also:
-
setHorizontalAlignment
public void setHorizontalAlignment(System.String horizontalAlignment) Sets the horizontal alignment of the style. Possible values are available inAlignmentclass.- Parameters:
horizontalAlignment- the horizontal alignment of the style- See Also:
-
getVerticalAlignment
public System.String getVerticalAlignment()Returns the vertical alignment of the style. Possible values are available inAlignmentclass.- Returns:
- the vertical alignment of the style
- See Also:
-
setVerticalAlignment
public void setVerticalAlignment(System.String verticalAlignment) Sets the vertical alignment of the style. Possible values are available inAlignmentclass.- Parameters:
verticalAlignment- the vertical alignment of the style- See Also:
-
IsJustifyDistributed
public bool IsJustifyDistributed()Returns the justify distributed setting of the style font. It can only be used for distributed alignment.- Returns:
- the justify distributed setting of the style font
- See Also:
-
setJustifyDistributed
public void setJustifyDistributed(bool isJustifyDistributed) Sets the justify distributed option of the style font. It can only be used for distributed alignment.- Parameters:
isJustifyDistributed- the justify distributed option of the style font- See Also:
-
getIndent
public int getIndent()Returns the indent of the style.- Returns:
- the indent of the style.
- See Also:
-
setIndent
public void setIndent(int indent) Sets the indent of the style.- Parameters:
indent- the indent of the style.- See Also:
-
getTextRotation
public int getTextRotation()Returns the text rotation of the style.- Returns:
- the text rotation of the style.
- See Also:
-
setTextRotation
public void setTextRotation(int textRotation) Sets the text rotation of the style.- Parameters:
textRotation- the text rotation of the style.- See Also:
-
IsWrap
public bool IsWrap()Returns the wrap setting of the style.- Returns:
- the wrap setting of the style
- See Also:
-
setWrap
public void setWrap(bool isWrap) Sets the wrap option of the style.- Parameters:
isWrap- the wrap option of the style- See Also:
-
IsShrink
public bool IsShrink()Returns the shrink setting of the style.- Returns:
- the shrink setting of the style
- See Also:
-
setShrink
public void setShrink(bool isShrink) Sets the shrink option of the style.- Parameters:
isShrink- the shrink option of the style- See Also:
-
IsMergeCell
public bool IsMergeCell()Returns the merge cell option of the style- Returns:
- the merge cell option of the style
-
getTextDirection
public int getTextDirection()Returns the text direction of the style- Returns:
- the text direction of the style
- See Also:
-
setTextDirection
public void setTextDirection(int textDirection) Sets the text direction of the style.- Parameters:
textDirection- the text direction of the style- See Also:
-
getFont
public System.String getFont()Returns the name of the style font.- Returns:
- the name of the style font
- See Also:
-
setFont
public void setFont(System.String fontName) Sets the name of the style font.- Parameters:
fontName- the name of the style font- See Also:
-
IsHeadingsFont
public bool IsHeadingsFont()Returns true if the font is the headings font, false otherwise.- Returns:
- true if the font is the headings font, false otherwise
- See Also:
-
setHeadingsFont
public void setHeadingsFont()Sets the headings font.- See Also:
-
IsBodyFont
public bool IsBodyFont()Returns true if the font is the body font, false otherwise.- Returns:
- true if the font is the body font, false otherwise
- See Also:
-
setBodyFont
public void setBodyFont()Sets the body font.- See Also:
-
getFontSize
public int getFontSize()Returns the size of the style font.- Returns:
- the size of the style font
- See Also:
-
setFontSize
public void setFontSize(int fontSize) Sets the size of the style font.- Parameters:
fontSize- the size of the style font- See Also:
-
IsBold
public bool IsBold()Returns the bold setting of the style font.- Returns:
- the bold setting of the style font
- See Also:
-
setBold
public void setBold(bool isBold) Sets the bold option of the style font.- Parameters:
isBold- the bold option of the style font- See Also:
-
IsItalic
public bool IsItalic()Returns the italic setting of the style font.- Returns:
- the italic setting of the style font
- See Also:
-
setItalic
public void setItalic(bool isItalic) Sets the italic option of the style font.- Parameters:
isItalic- the italic option of the style font- See Also:
-
getUnderlineStyle
public int getUnderlineStyle()Returns the underline style of the style font. Possible values are available inFontSettingsclass.- Returns:
- the underline style of the style font
- See Also:
-
setUnderlineStyle
public void setUnderlineStyle(int underlineStyle) Sets the underline style of the style font. Possible values are available inFontSettingsclass.- Parameters:
underlineStyle- underline style of the style font- See Also:
-
getForeground
public System.Drawing.Color getForeground()Returns the foreground color of the style.- Returns:
- the foreground color of the style
- See Also:
-
getForegroundThemeColor
Returns the foreground color of the style.- Returns:
- the foreground color of the style
- See Also:
-
setForeground
public void setForeground(System.Drawing.Color color) Sets the foreground color of the style.- Parameters:
color- the foreground color of the style- See Also:
-
setForeground
Sets the foreground color of the style.
This method is overridden as setForeground_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the foreground color of the style- See Also:
-
IsStrikethrough
public bool IsStrikethrough()Returns the strikethrough setting of the style font.- Returns:
- the strikethrough setting of the style font
- See Also:
-
setStrikethrough
public void setStrikethrough(bool isStrikethrough) Sets the strikethrough option of the style font.- Parameters:
isStrikethrough- the strikethrough option of the style font- See Also:
-
IsSuperscript
public bool IsSuperscript()Returns the superscript setting of the style font.- Returns:
- the superscript setting of the style font
- See Also:
-
setSuperscript
public void setSuperscript(bool isSuperscript) Sets the superscript option of the style font.- Parameters:
isSuperscript- the superscript option of the style font- See Also:
-
IsSubscript
public bool IsSubscript()Returns the subscript setting of the style font.- Returns:
- the subscript setting of the style font
- See Also:
-
setSubscript
public void setSubscript(bool isSubscript) Sets the subscript option of the style font.- Parameters:
isSubscript- the subscript option of the style font- See Also:
-
setBorderStyles
public void setBorderStyles(int borderTop, int borderBottom, int borderLeft, int borderRight) Sets the border styles of the style. Possible values are available inBorderclass.- Parameters:
borderTop- the border style in the top of cellborderBottom- the border style in the bottom of cellborderLeft- the border style in the left of cellborderRight- the border style in the right of cell- See Also:
-
getTopStyle_Border
public int getTopStyle_Border()Returns the style of the top border. Possible values are available inBorderclass.- Returns:
- the style of the top border
- See Also:
-
setTopStyle_Border
public void setTopStyle_Border(int borderStyle) Sets the style of the top border. Possible values are available inBorderclass.- Parameters:
borderStyle- the style of the top border- See Also:
-
getBottomStyle_Border
public int getBottomStyle_Border()Returns the style of the bottom border. Possible values are available inBorderclass.- Returns:
- the style of the bottom border
- See Also:
-
setBottomStyle_Border
public void setBottomStyle_Border(int borderStyle) Sets the style of the bottom border. Possible values are available inBorderclass.- Parameters:
borderStyle- the style of the bottom border- See Also:
-
getLeftStyle_Border
public int getLeftStyle_Border()Returns the style of the left border. Possible values are available inBorderclass.- Returns:
- the style of the left border
- See Also:
-
setLeftStyle_Border
public void setLeftStyle_Border(int borderStyle) Sets the style of the left border. Possible values are available inBorderclass.- Parameters:
borderStyle- the style of the left border- See Also:
-
getRightStyle_Border
public int getRightStyle_Border()Returns the style of the right border. Possible values are available inBorderclass.- Returns:
- the style of the right border
- See Also:
-
setRightStyle_Border
public void setRightStyle_Border(int borderStyle) Sets the style of the right border. Possible values are available inBorderclass.- Parameters:
borderStyle- the style of the right border- See Also:
-
setBorderColors
public void setBorderColors(System.Drawing.Color borderTop, System.Drawing.Color borderBottom, System.Drawing.Color borderLeft, System.Drawing.Color borderRight) Sets the border colors of the style.- Parameters:
borderTop- the border color in the top of cellborderBottom- the border color in the bottom of cellborderLeft- the border color in the left of cellborderRight- the border color in the right of cell- See Also:
-
setBorderColors
public void setBorderColors(ThemeColor borderTop, ThemeColor borderBottom, ThemeColor borderLeft, ThemeColor borderRight) Sets the border colors of the style.
This method is overridden as setBorderColors_2 in COM+ version of EasyXLS.- Parameters:
borderTop- the border color in the top of cellborderBottom- the border color in the bottom of cellborderLeft- the border color in the left of cellborderRight- the border color in the right of cell- See Also:
-
getTopColor_Border
public System.Drawing.Color getTopColor_Border()Returns the color of the top border.- Returns:
- the color of the top border
- See Also:
-
getTopThemeColor_Border
Returns the color of the top border.- Returns:
- the color of the top border
- See Also:
-
setTopColor_Border
public void setTopColor_Border(System.Drawing.Color color) Sets the color of the top border.- Parameters:
color- the color of the top border- See Also:
-
setTopColor_Border
Sets the color of the top border.
This method is overridden as setTopColor_Border_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the color of the top border- See Also:
-
getBottomColor_Border
public System.Drawing.Color getBottomColor_Border()Returns the color of the bottom border.- Returns:
- the color of the bottom border
- See Also:
-
getBottomThemeColor_Border
Returns the color of the bottom border.- Returns:
- the color of the bottom border
- See Also:
-
setBottomColor_Border
public void setBottomColor_Border(System.Drawing.Color color) Sets the color of the bottom border.- Parameters:
color- the color of the bottom border- See Also:
-
setBottomColor_Border
Sets the color of the bottom border.
This method is overridden as setBottomColor_Border_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the color of the bottom border- See Also:
-
getLeftColor_Border
public System.Drawing.Color getLeftColor_Border()Returns the color of the left border.- Returns:
- the color of the left border
- See Also:
-
getLeftThemeColor_Border
Returns the color of the left border.- Returns:
- the color of the left border
- See Also:
-
setLeftColor_Border
public void setLeftColor_Border(System.Drawing.Color color) Sets the color of the left border.- Parameters:
color- the color of the left border- See Also:
-
setLeftColor_Border
Sets the color of the left border.
This method is overridden as setLeftColor_Border_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the color of the left border- See Also:
-
getRightColor_Border
public System.Drawing.Color getRightColor_Border()Returns the color of the right border.- Returns:
- the color of the right border
- See Also:
-
getRightThemeColor_Border
Returns the color of the right border.- Returns:
- the color of the right border
- See Also:
-
setRightColor_Border
public void setRightColor_Border(System.Drawing.Color color) Sets the color of the right border.- Parameters:
color- the color of the right border- See Also:
-
setRightColor_Border
Sets the color of the right border.
This method is overridden as setRightColor_Border_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the color of the right border- See Also:
-
setDiagonalBorder
public void setDiagonalBorder(bool borderDiagonalUp, bool borderDiagonalDown, int borderStyle, System.Drawing.Color borderColor) Sets the diagonal borders.- Parameters:
borderDiagonalUp- true if the diagonal up border is setborderDiagonalDown- true if the diagonal down border is setborderStyle- the style of the diagonal border. Possible values are available inBorderclass.borderColor- the color of the diagonal border- See Also:
-
setDiagonalBorder
public void setDiagonalBorder(bool borderDiagonalUp, bool borderDiagonalDown, int borderStyle, ThemeColor borderColor) Sets the diagonal borders.
This method is overridden as setDiagonalBorder_2 in COM+ version of EasyXLS.- Parameters:
borderDiagonalUp- true if the diagonal up border is setborderDiagonalDown- true if the diagonal down border is setborderStyle- the style of the diagonal border. Possible values are available inBorderclass.borderColor- the color of the diagonal border- See Also:
-
getDiagonalUpStyle_Border
public int getDiagonalUpStyle_Border()Returns the style of the diagonal up border. Possible values are available inBorderclass.- Returns:
- the style of the diagonal up border
- See Also:
-
getDiagonalDownStyle_Border
public int getDiagonalDownStyle_Border()Returns the style of the diagonal down border. Possible values are available inBorderclass.- Returns:
- the style of the diagonal down border
- See Also:
-
getDiagonalColor_Border
public System.Drawing.Color getDiagonalColor_Border()Returns the color of the diagonal border.- Returns:
- the color of the diagonal border
- See Also:
-
getDiagonalThemeColor_Border
Returns the color of the diagonal border.- Returns:
- the color of the diagonal border
- See Also:
-
getBackground
public System.Drawing.Color getBackground()Returns the background color of the style.- Returns:
- the background color of the style
- See Also:
-
getBackgroundThemeColor
Returns the background color of the style.- Returns:
- the background color of the style
- See Also:
-
setBackground
public void setBackground(System.Drawing.Color color) Sets the background color of the style.- Parameters:
color- the background color of the style- See Also:
-
setBackground
Sets the background color of the style.
This method is overridden as setBackground_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the background color of the style- See Also:
-
getPattern
public int getPattern()Returns the pattern of the style.- Returns:
- the pattern of the style
- See Also:
-
setPattern
public void setPattern(int pattern) Sets the pattern of the style.- Parameters:
pattern- the pattern of the style- See Also:
-
getPatternColor
public System.Drawing.Color getPatternColor()Returns the pattern color of the style.- Returns:
- the pattern color of the style
- See Also:
-
getPatternThemeColor
Returns the pattern color of the style.- Returns:
- the pattern color of the style
- See Also:
-
setPatternColor
public void setPatternColor(System.Drawing.Color color) Sets the pattern color of the style.- Parameters:
color- the pattern color of the style- See Also:
-
setPatternColor
Sets the pattern color of the style.
This method is overridden as setPatternColor_2 in COM+ version of EasyXLS.- Parameters:
themeColor- the pattern color of the style- See Also:
-
getGradientColor1
public System.Drawing.Color getGradientColor1()Returns the first color of the gradient fill.- Returns:
- the first color of the gradient fill
- See Also:
-
setGradientColor1
public void setGradientColor1(System.Drawing.Color color1) Sets the first color of the gradient fill.- Parameters:
color1- the first color of the gradient fill- See Also:
-
getGradientColor2
public System.Drawing.Color getGradientColor2()Returns the second color of the gradient fill.- Returns:
- the second color of the gradient fill
- See Also:
-
setGradientColor2
public void setGradientColor2(System.Drawing.Color color2) Sets the second color of the gradient fill.- Parameters:
color2- the second color of the gradient fill- See Also:
-
setGradientFill
public void setGradientFill(System.Drawing.Color color1, System.Drawing.Color color2, int shadingStyle) Sets the gradient fill for the style.- Parameters:
color1- the first color of the gradient fillcolor2- the second color of the gradient fillshadingStyle- the shading style of the gradient fill. Possible values are available inFillclass.- See Also:
-
getGradientThemeColor1
Returns the first color of the gradient fill.- Returns:
- the first color of the gradient fill
- See Also:
-
setGradientColor1
Sets the first color of the gradient fill.- Parameters:
themeColor1- the first color of the gradient fill- See Also:
-
getGradientThemeColor2
Returns the second color of the gradient fill.- Returns:
- the second color of the gradient fill
- See Also:
-
setGradientColor2
Sets the second color of the gradient fill.- Parameters:
themeColor2- the second color of the gradient fill- See Also:
-
setGradientFill
Sets the gradient fill for the style.- Parameters:
themeColor1- the first color of the gradient fillthemeColor2- the second color of the gradient fillshadingStyle- the shading style of the gradient fill. Possible values are available inFillclass.- See Also:
-
getGradientShadingStyle
public int getGradientShadingStyle()Returns the shading style of the gradient fill. Possible values are available inFillclass.- Returns:
- the shading style of the gradient fill
- See Also:
-
setGradientShadingStyle
public void setGradientShadingStyle(int shadingStyle) Sets the shading style of the gradient fill. Possible values are available inFillclass.- Parameters:
shadingStyle- the shading style of the gradient fill- See Also:
-
IsLocked
public bool IsLocked()Returns the locked setting of the style.- Returns:
- the locked setting of the style
- See Also:
-
setLocked
public void setLocked(bool isLocked) Sets the locked option of the style.- Parameters:
isLocked- the locked option of the style- See Also:
-
IsHiddenFormula
public bool IsHiddenFormula()Returns the hidden setting of the style.- Returns:
- the hidden setting of the style
- See Also:
-
setHiddenFormula
public void setHiddenFormula(bool isHidden) Sets the hidden option of the style.- Parameters:
isHidden- the hidden option of the style- See Also:
-
getDataType
public System.String getDataType()Returns the data type of the style. The default value is DataType.AUTOMATIC. Automatic data type can be resource and time consuming and we recommend using a defined one. Possible values are available inDataTypeclass.- Returns:
- the data type of the cell
- See Also:
-
setDataType
public void setDataType(System.String dataType) Sets the data type of the style. The default value is DataType.AUTOMATIC. Automatic data type can be resource and time consuming and we recommend using a defined one. Possible values are available inDataTypeclass.- Parameters:
dataType- the data type of the cell- See Also:
-
Clone
Creates and returns a copy of this object.- Returns:
- a clone of this instance.
-
IsEqual
Compares two styles.- Parameters:
xlsCompare- the style that will be compared to- Returns:
- true if the styles have the same settings
-