|
ActiveXLS v6.4.0 API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |
System.ObjectActiveXLS.ExcelStyle
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 | |
ExcelStyle()
Defines 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 | |
ExcelStyle |
Clone()
Creates and returns a copy of this object. |
System.Drawing.Color |
getBackground()
Returns the background color of the style. |
System.Drawing.Color |
getBottomColor_Border()
Returns the color of the bottom border. |
int |
getBottomStyle_Border()
Returns the style of the bottom border. |
System.String |
getDataType()
Returns the data type of the style. |
System.String |
getFont()
Returns the name of the style font. |
int |
getFontSize()
Returns the size of the style font. |
System.Drawing.Color |
getForeground()
Returns the foreground color of the style. |
System.String |
getFormat()
Returns the number/date format of the style. |
System.String |
getHorizontalAlignment()
Returns the horizontal alignment of the style. |
int |
getIndent()
Returns the indent of the style. |
System.Drawing.Color |
getLeftColor_Border()
Returns the color of the left border. |
int |
getLeftStyle_Border()
Returns the style of the left border. |
int |
getPattern()
Returns the pattern of the style. |
System.Drawing.Color |
getPatternColor()
Returns the pattern color of the style. |
System.Drawing.Color |
getRightColor_Border()
Returns the color of the right border. |
int |
getRightStyle_Border()
Returns the style of the right border. |
int |
getTextRotation()
Returns the text rotation of the style. |
System.Drawing.Color |
getTopColor_Border()
Returns the color of the top border. |
int |
getTopStyle_Border()
Returns the style of the top border. |
int |
getUnderlineStyle()
Returns the underline style of the style font. |
System.String |
getVerticalAlignment()
Returns the vertical alignment of the style. |
bool |
IsBold()
Returns the bold setting of the style font. |
bool |
IsEqual(ExcelStyle xlsCompare)
Compares two styles. |
bool |
IsHiddenFormula()
Returns the hidden setting of the style. |
bool |
IsItalic()
Returns the italic setting of the style font. |
bool |
IsLocked()
Returns the locked setting of the style. |
bool |
IsMergeCell()
Returns the merge cell option of the style |
bool |
IsShrink()
Returns the shrink setting of the style. |
bool |
IsStrikethrough()
Returns the strikethrough setting of the style font. |
bool |
IsSubscript()
Returns the subscript setting of the style font. |
bool |
IsSuperscript()
Returns the superscript setting of the style font. |
bool |
IsWrap()
Returns the wrap setting of the style. |
void |
setBackground(System.Drawing.Color color)
Sets the background color of the style. |
void |
setBold(bool isBold)
Sets the bold option of the style font. |
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. |
void |
setBorderStyles(int borderTop,
int borderBottom,
int borderLeft,
int borderRight)
Sets the border styles of the style. |
void |
setBottomColor_Border(System.Drawing.Color color)
Sets the color of the bottom border. |
void |
setBottomStyle_Border(int borderStyle)
Sets the style of the bottom border. |
void |
setDataType(System.String dataType)
Sets the data type of the style. |
void |
setFont(System.String fontName)
Sets the name of the style font. |
void |
setFontSize(int fontSize)
Sets the size of the style font. |
void |
setForeground(System.Drawing.Color color)
Sets the foreground color of the style. |
void |
setFormat(System.String format)
Sets the number/date format of the style. |
void |
setHiddenFormula(bool isHidden)
Sets the hidden option of the style. |
void |
setHorizontalAlignment(System.String horizontalAlignment)
Sets the horizontal alignment of the style. |
void |
setIndent(int indent)
Sets the the indent of the style. |
void |
setItalic(bool isItalic)
Sets the italic option of the style font. |
void |
setLeftColor_Border(System.Drawing.Color color)
Sets the color of the left border. |
void |
setLeftStyle_Border(int borderStyle)
Sets the style of the left border. |
void |
setLocked(bool isLocked)
Sets the locked option of the style. |
void |
setPattern(int pattern)
Sets the pattern of the style. |
void |
setPatternColor(System.Drawing.Color color)
Sets the pattern color of the style. |
void |
setRightColor_Border(System.Drawing.Color color)
Sets the color of the right border. |
void |
setRightStyle_Border(int borderStyle)
Sets the style of the right border. |
void |
setShrink(bool isShrink)
Sets the shrink option of the style. |
void |
setStrikethrough(bool isStrikethrough)
Sets the strikethrough option of the style font. |
void |
setSubscript(bool isSubscript)
Sets the subscript option of the style font. |
void |
setSuperscript(bool isSuperscript)
Sets the superscript option of the style font. |
void |
setTextRotation(int textRotation)
Sets the text rotation of the style. |
void |
setTopColor_Border(System.Drawing.Color color)
Sets the color of the top border. |
void |
setTopStyle_Border(int borderStyle)
Sets the style of the top border. |
void |
setUnderlineStyle(int underlineStyle)
Sets the underline style of the style font. |
void |
setVerticalAlignment(System.String verticalAlignment)
Sets the vertical alignment of the style. |
void |
setWrap(bool isWrap)
Sets the wrap option of the style. |
Constructor Detail |
public ExcelStyle()
public ExcelStyle(System.Drawing.Color background)
background
- the background color of the stylepublic ExcelStyle(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground)
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 stylepublic ExcelStyle(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground, System.Drawing.Color background)
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 styleMethod Detail |
public int getUnderlineStyle()
FontSettings
class.
setUnderlineStyle(int)
public void setUnderlineStyle(int underlineStyle)
FontSettings
class.
underlineStyle
- underline style of the style fontgetUnderlineStyle()
public int getFontSize()
setFontSize(int)
public void setFontSize(int fontSize)
fontSize
- the size of the style fontgetFontSize()
public System.String getFont()
setFont(System.String)
public void setFont(System.String fontName)
fontName
- the name of the style fontgetFont()
public bool IsStrikethrough()
setStrikethrough(bool)
public void setStrikethrough(bool isStrikethrough)
isStrikethrough
- the strikethrough option of the style fontIsStrikethrough()
public bool IsSuperscript()
setSuperscript(bool)
public void setSuperscript(bool isSuperscript)
isSuperscript
- the superscript option of the style fontIsSuperscript()
public bool IsSubscript()
setSubscript(bool)
public void setSubscript(bool isSubscript)
isSubscript
- the subscript option of the style fontIsSubscript()
public bool IsWrap()
setWrap(bool)
public void setWrap(bool isWrap)
isWrap
- the wrap option of the styleIsWrap()
public System.Drawing.Color getBackground()
setBackground(System.Drawing.Color)
public void setBackground(System.Drawing.Color color)
color
- the background color of the stylegetBackground()
public System.Drawing.Color getForeground()
setForeground(System.Drawing.Color)
public void setForeground(System.Drawing.Color color)
color
- the foreground color of the stylegetForeground()
public bool IsBold()
setBold(bool)
public void setBold(bool isBold)
isBold
- the bold option of the style fontIsBold()
public bool IsItalic()
setItalic(bool)
public void setItalic(bool isItalic)
isItalic
- the italic option of the style fontIsItalic()
public System.String getHorizontalAlignment()
Alignment
class.
setHorizontalAlignment(System.String)
public void setHorizontalAlignment(System.String horizontalAlignment)
Alignment
class.
horizontalAlignment
- the horizontal alignment of the stylegetHorizontalAlignment()
public System.String getVerticalAlignment()
Alignment
class.
setVerticalAlignment(System.String)
public void setVerticalAlignment(System.String verticalAlignment)
Alignment
class.
verticalAlignment
- the vertical alignment of the stylegetVerticalAlignment()
public int getTextRotation()
setTextRotation(int)
public void setTextRotation(int textRotation)
textRotation
- the text rotation of the style.getTextRotation()
public int getIndent()
setIndent(int)
public void setIndent(int indent)
indent
- the indent of the style.getIndent()
public int getPattern()
setPattern(int)
public void setPattern(int pattern)
pattern
- the pattern of the stylegetPattern()
public System.Drawing.Color getPatternColor()
setPatternColor(System.Drawing.Color)
public void setPatternColor(System.Drawing.Color color)
color
- the pattern color of the stylegetPatternColor()
public System.String getFormat()
Format
class.
setFormat(System.String)
public void setFormat(System.String format)
Format
class.
format
- the number/date format of the stylegetFormat()
public bool IsLocked()
setLocked(bool)
public void setLocked(bool isLocked)
isLocked
- the locked option of the styleIsLocked()
public bool IsShrink()
setShrink(bool)
public void setShrink(bool isShrink)
isShrink
- the shrink option of the styleIsShrink()
public bool IsMergeCell()
public bool IsHiddenFormula()
setHiddenFormula(bool)
public void setHiddenFormula(bool isHidden)
isHidden
- the hidden option of the styleIsHiddenFormula()
public System.String getDataType()
DataType
class.
setDataType(System.String)
public void setDataType(System.String dataType)
DataType
class.
dataType
- the data type of the cellgetDataType()
public void setBorderStyles(int borderTop, int borderBottom, int borderLeft, int borderRight)
Border
class.
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 cellgetTopStyle_Border()
,
getBottomStyle_Border()
,
getLeftStyle_Border()
,
getRightStyle_Border()
,
setBorderColors(System.Drawing.Color, System.Drawing.Color, System.Drawing.Color, System.Drawing.Color)
public int getTopStyle_Border()
Border
class.
setTopStyle_Border(int)
public void setTopStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the top bordergetTopStyle_Border()
public int getBottomStyle_Border()
Border
class.
setBottomStyle_Border(int)
public void setBottomStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the bottom bordergetBottomStyle_Border()
public int getLeftStyle_Border()
Border
class.
setLeftStyle_Border(int)
public void setLeftStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the left bordergetLeftStyle_Border()
public int getRightStyle_Border()
Border
class.
setRightStyle_Border(int)
public void setRightStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the right bordergetRightStyle_Border()
public void setBorderColors(System.Drawing.Color borderTop, System.Drawing.Color borderBottom, System.Drawing.Color borderLeft, System.Drawing.Color borderRight)
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 cellgetTopColor_Border()
,
getBottomColor_Border()
,
getLeftColor_Border()
,
getRightColor_Border()
,
setBorderStyles(int, int, int, int)
public System.Drawing.Color getTopColor_Border()
setTopColor_Border(System.Drawing.Color)
public void setTopColor_Border(System.Drawing.Color color)
color
- the color of the top bordergetTopColor_Border()
public System.Drawing.Color getBottomColor_Border()
setBottomColor_Border(System.Drawing.Color)
public void setBottomColor_Border(System.Drawing.Color color)
color
- the color of the bottom bordergetBottomColor_Border()
public System.Drawing.Color getLeftColor_Border()
setLeftColor_Border(System.Drawing.Color)
public void setLeftColor_Border(System.Drawing.Color color)
color
- the color of the left bordergetLeftColor_Border()
public System.Drawing.Color getRightColor_Border()
setRightColor_Border(System.Drawing.Color)
public void setRightColor_Border(System.Drawing.Color color)
color
- the color of the right bordergetRightColor_Border()
public ExcelStyle Clone()
public bool IsEqual(ExcelStyle xlsCompare)
xlsCompare
- the style that will be compared to
|
Copyright 2009 On Time Computing Solutions | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |