|
ActiveXLS v6.4.0 API Documentation | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD | ||||||||||
System.ObjectActiveXLS.ExcelCondition
This class stores the condition of the conditional formatting information like type, operator, first and second formula, font, border and pattern style.
| Constructor Summary | |
ExcelCondition()
Defines an instance of the condition. |
|
ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula)
Defines an instance of the condition, having the specified operator and formula restrictions. |
|
ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground)
Defines an instance of the condition, having the specified operator, formula restrictions and font settings. |
|
ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground,
System.Drawing.Color background)
Defines an instance of the condition, having the specified operator, formula restrictions, font settings and background. |
|
ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
System.Drawing.Color background)
Defines an instance of the condition, having the specified operator, formula restrictions and background. |
|
| Method Summary | |
void |
clearBackgroundSettings()
Removes all the background settings. |
void |
clearBorderSettings()
Removes all the border settings. |
void |
clearFontSettings()
Removes all the font settings. |
ExcelCondition |
Clone()
Creates and returns a copy of this object. |
bool |
ContainsBorderFormatting()
Internal use only |
bool |
ContainsFontFormatting()
Internal use only |
bool |
ContainsPatternFormatting()
Internal use only |
System.Drawing.Color |
getBackground()
Returns the color of the conditional formatting background. |
System.Drawing.Color |
getBottomColor_Border()
Returns the color of the conditional formatting bottom border. |
int |
getBottomStyle_Border()
Returns the style of the conditional formatting bottom border. |
int |
getConditionType()
Returns the conditional formatting type. |
System.String |
getFirstFormula()
Returns the conditional formatting first formula |
System.Drawing.Color |
getForeground()
Returns the foreground of the conditional formatting font. |
System.Drawing.Color |
getLeftColor_Border()
Returns the color of the conditional formatting left border. |
int |
getLeftStyle_Border()
Returns the style of the conditional formatting left border. |
int |
getOperator()
Returns the conditional formatting operator. |
System.Drawing.Color |
getRightColor_Border()
Returns the color of the conditional formatting right border. |
int |
getRightStyle_Border()
Returns the style of the conditional formatting right border. |
System.String |
getSecondFormula()
Returns the conditional formatting second formula |
System.Drawing.Color |
getTopColor_Border()
Returns the color of the conditional formatting top border. |
int |
getTopStyle_Border()
Returns the style of the conditional formatting top border. |
int |
getUnderlineStyle()
Returns the underline style of the conditional formatting font. |
bool |
IsBackgroundModified()
Returns true if the condition modifies the background of the cell font, false otherwise. |
bool |
IsBold()
Returns the bold setting of the conditional formatting font. |
bool |
IsBottomBorderModified()
Returns true if the condition modifies the bottom border style of the cell, false otherwise. |
bool |
IsFontBoldItalicModified()
Returns true if the condition modifies the style property of the cell font, false otherwise. |
bool |
IsFontColorModified()
Returns true if the condition modifies the color of the cell font, false otherwise. |
bool |
IsFontStrikethroughModified()
Returns true if the condition modifies the strikethrough property of the cell font, false otherwise. |
bool |
IsFontUnderlineModified()
Returns true if the condition modifies the underline property of the cell font, false otherwise. |
bool |
IsItalic()
Returns the italic setting of the conditional formatting font. |
bool |
IsLeftBorderModified()
Returns true if the condition modifies the left border style of the cell, false otherwise. |
bool |
IsRightBorderModified()
Returns true if the condition modifies the right border style of the cell, false otherwise. |
bool |
IsStrikethrough()
Returns the strikethrough setting of the conditional formatting font. |
bool |
IsTopBorderModified()
Returns true if the condition modifies the top border style of the cell, false otherwise. |
void |
setBackground(System.Drawing.Color color)
Sets the color of the conditional formatting background. |
void |
setBold(bool isBold)
Sets the bold setting of the conditional formatting font. |
void |
setBorderColors(System.Drawing.Color borderTop,
System.Drawing.Color borderBottom,
System.Drawing.Color borderLeft,
System.Drawing.Color borderRight)
Sets the color of the conditional formatting borders. |
void |
setBorderStyles(int borderTop,
int borderBottom,
int borderLeft,
int borderRight)
Sets the style of the conditional formatting borders. |
void |
setBottomColor_Border(System.Drawing.Color color)
Sets the color of the conditional formatting bottom border. |
void |
setBottomStyle_Border(int borderStyle)
Sets the style of the conditional formatting bottom border. |
void |
setConditionType(int type)
Sets the conditional formatting type. |
void |
setFirstFormula(System.String firstFormula)
Sets the conditional formatting first formula. |
void |
setForeground(System.Drawing.Color color)
Sets the foreground of the conditional formatting font. |
void |
setItalic(bool isItalic)
Sets the italic setting of the conditional formatting font. |
void |
setLeftColor_Border(System.Drawing.Color color)
Sets the color of the conditional formatting left border. |
void |
setLeftStyle_Border(int borderStyle)
Sets the style of the conditional formatting left border. |
void |
setOperator(int nOperator)
Sets the conditional formatting operator. |
void |
setRightColor_Border(System.Drawing.Color color)
Sets the color of the conditional formatting right border. |
void |
setRightStyle_Border(int borderStyle)
Sets the style of the conditional formatting right border. |
void |
setSecondFormula(System.String secondFormula)
Sets the conditional formatting second formula. |
void |
setStrikethrough(bool isStrikethrough)
Sets the strikethrough setting of the conditional formatting font. |
void |
setTopColor_Border(System.Drawing.Color color)
Sets the color of the conditional formatting top border. |
void |
setTopStyle_Border(int borderStyle)
Sets the style of the conditional formatting top border. |
void |
setUnderlineStyle(int underlineStyle)
Sets the underline style of the conditional formatting font. |
| Constructor Detail |
public ExcelCondition()
public ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula)
nOperator - the conditional formatting operator. Possible values are available in ConditionalFormatting class.firstFormula - the conditional formatting first formulasecondFormula - the conditional formatting second formula
public ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
System.Drawing.Color background)
nOperator - the conditional formatting operator. Possible values are available in ConditionalFormatting class.firstFormula - the conditional formatting first formulasecondFormula - the conditional formatting second formulabackground - the color of the conditional formatting background
public ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground)
nOperator - the conditional formatting operator. Possible values are available in ConditionalFormatting class.firstFormula - the conditional formatting first formulasecondFormula - the conditional formatting second formulaisBold - the bold setting of the conditional formatting fontisItalic - the italic setting of the conditional formatting fontforeground - the foreground of the conditional formatting font
public ExcelCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground,
System.Drawing.Color background)
nOperator - the conditional formatting operator. Possible values are available in ConditionalFormatting class.firstFormula - the conditional formatting first formulasecondFormula - the conditional formatting second formulaisBold - the bold setting of the conditional formatting fontisItalic - the italic setting of the conditional formatting fontforeground - the foreground of the conditional formatting fontbackground - the color of the conditional formatting background| Method Detail |
public bool IsFontUnderlineModified()
setUnderlineStyle(int),
getUnderlineStyle()public bool IsFontBoldItalicModified()
setBold(bool),
IsBold(),
setItalic(bool),
IsItalic()public bool IsFontStrikethroughModified()
setStrikethrough(bool),
IsStrikethrough()public bool IsFontColorModified()
setForeground(System.Drawing.Color),
getForeground()public void clearFontSettings()
public bool IsLeftBorderModified()
setBorderStyles(int, int, int, int),
IsRightBorderModified(),
IsTopBorderModified(),
IsBottomBorderModified()public bool IsRightBorderModified()
setBorderStyles(int, int, int, int),
IsLeftBorderModified(),
IsTopBorderModified(),
IsBottomBorderModified()public bool IsTopBorderModified()
setBorderStyles(int, int, int, int),
IsLeftBorderModified(),
IsRightBorderModified(),
IsBottomBorderModified()public bool IsBottomBorderModified()
setBorderStyles(int, int, int, int),
IsLeftBorderModified(),
IsRightBorderModified(),
IsTopBorderModified()public void clearBorderSettings()
public bool IsBackgroundModified()
setBackground(System.Drawing.Color),
getBackground()public void clearBackgroundSettings()
public bool ContainsFontFormatting()
public bool ContainsPatternFormatting()
public bool ContainsBorderFormatting()
public int getConditionType()
ConditionalFormatting class.
setConditionType(int)public void setConditionType(int type)
ConditionalFormatting class.
type - the conditional formatting typegetConditionType()public int getOperator()
ConditionalFormatting class.
setOperator(int)public void setOperator(int nOperator)
ConditionalFormatting class.
nOperator - the conditional formatting operatorgetOperator()public System.String getFirstFormula()
setFirstFormula(System.String),
setSecondFormula(System.String),
getSecondFormula()public void setFirstFormula(System.String firstFormula)
firstFormula - the conditional formatting first formulagetFirstFormula(),
setSecondFormula(System.String),
getSecondFormula()public System.String getSecondFormula()
setSecondFormula(System.String),
getSecondFormula(),
setFirstFormula(System.String)public void setSecondFormula(System.String secondFormula)
secondFormula - the conditional formatting second formulagetSecondFormula(),
getFirstFormula(),
setFirstFormula(System.String)public System.Drawing.Color getForeground()
setForeground(System.Drawing.Color),
IsFontColorModified()public void setForeground(System.Drawing.Color color)
color - the foreground of the conditional formatting fontgetForeground(),
IsFontColorModified()public bool IsBold()
setBold(bool),
IsFontBoldItalicModified()public void setBold(bool isBold)
isBold - the bold setting of the conditional formatting fontIsBold(),
IsFontBoldItalicModified()public bool IsItalic()
setItalic(bool),
IsFontBoldItalicModified()public void setItalic(bool isItalic)
isItalic - the italic setting of the conditional formatting fontIsItalic(),
IsFontBoldItalicModified()public bool IsStrikethrough()
setStrikethrough(bool),
IsFontStrikethroughModified()public void setStrikethrough(bool isStrikethrough)
isStrikethrough - the strikethrough setting of the conditional formatting fontIsStrikethrough(),
IsFontStrikethroughModified()public int getUnderlineStyle()
FontSettings
setUnderlineStyle(int),
IsFontUnderlineModified()public void setUnderlineStyle(int underlineStyle)
FontSettings
underlineStyle - the underline style of the conditional formatting fontgetUnderlineStyle(),
IsFontUnderlineModified()
public void setBorderStyles(int borderTop,
int borderBottom,
int borderLeft,
int borderRight)
Border class.
borderTop - the style of the conditional formatting top borderborderBottom - the style of the conditional formatting bottom borderborderLeft - the style of the conditional formatting left borderborderRight - the style of the conditional formatting right bordergetTopStyle_Border(),
getBottomStyle_Border(),
getLeftStyle_Border(),
getRightStyle_Border(),
setBorderColors(System.Drawing.Color, System.Drawing.Color, System.Drawing.Color, System.Drawing.Color),
IsLeftBorderModified(),
IsRightBorderModified(),
IsTopBorderModified(),
IsBottomBorderModified()public int getTopStyle_Border()
Border class.
setTopStyle_Border(int)public void setTopStyle_Border(int borderStyle)
Border class.
borderStyle - the style of the conditional formatting 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 conditional formatting 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 conditional formatting 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 conditional formatting right bordergetRightStyle_Border()
public void setBorderColors(System.Drawing.Color borderTop,
System.Drawing.Color borderBottom,
System.Drawing.Color borderLeft,
System.Drawing.Color borderRight)
borderTop - the color of the conditional formatting top borderborderBottom - the color of the conditional formatting bottom borderborderLeft - the color of the conditional formatting left borderborderRight - the color of the conditional formatting right bordergetTopColor_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 conditional formatting 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 conditional formatting 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 conditional formatting 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 conditional formatting right bordergetRightColor_Border()public System.Drawing.Color getBackground()
setBackground(System.Drawing.Color),
IsBackgroundModified()public void setBackground(System.Drawing.Color color)
color - the color of the conditional formatting backgroundgetBackground(),
IsBackgroundModified()public ExcelCondition Clone()
|
Copyright 2009 On Time Computing Solutions | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD | ||||||||||