|
ActiveXLS v6.4.0 API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |
System.ObjectActiveXLS.ExcelConditionalFormatting
This class stores the conditional formatting information like cells range and conditions.
Constructor Summary | |
ExcelConditionalFormatting()
Defines an instance of the conditional formatting. |
|
ExcelConditionalFormatting(int firstRow,
int firstColumn,
int lastRow,
int lastColumn,
List lstConditions)
Defines an instance of the conditional formatting having the specified range. |
|
ExcelConditionalFormatting(System.String range,
int nOperator,
System.String firstFormula,
System.String secondFormula)
Defines an instance of the conditional formatting having the specified position, operator and formula restrictions. |
|
ExcelConditionalFormatting(System.String range,
int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground)
Defines an instance of the conditional formatting having the specified position, operator, formula restrictions and font settings. |
|
ExcelConditionalFormatting(System.String range,
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 conditional formatting having the specified position, operator, formula restrictions, font settings and background. |
|
ExcelConditionalFormatting(System.String range,
int nOperator,
System.String firstFormula,
System.String secondFormula,
System.Drawing.Color background)
Defines an instance of the conditional formatting having the specified position, operator, formula restrictions and background. |
|
ExcelConditionalFormatting(System.String range,
List lstConditions)
Defines an instance of the conditional formatting on the specified range. |
Method Summary | |
void |
addCondition(ExcelCondition condition)
Adds a new condition. |
void |
addCondition(int nOperator,
System.String firstFormula,
System.String secondFormula)
Adds a new condition with the specified operation and formula restrictions. |
void |
addCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground)
Adds a new condition with the specified operation, formula restrictions and font settings. |
void |
addCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
bool isBold,
bool isItalic,
System.Drawing.Color foreground,
System.Drawing.Color background)
Adds a new condition with the specified operation, formula restrictions, font settings and background. |
void |
addCondition(int nOperator,
System.String firstFormula,
System.String secondFormula,
System.Drawing.Color background)
Adds a new condition with the specified operation, formula restrictions, background. |
ExcelConditionalFormatting |
Clone()
Creates and returns a copy of this object. |
int |
ConditionCount()
Returns the number of conditions. |
ExcelCondition |
getConditionAt(int index)
Returns the condition with the specified index. |
int |
getFirstColumn()
Returns the first column index of the cells range. |
int |
getFirstRow()
Returns the first row index of the cells range. |
int |
getLastColumn()
Returns the last column index of the cells range. |
int |
getLastRow()
Returns the last row index of the cells range. |
System.String |
getRange()
Returns the range where the conditional formatting will be aplied. |
void |
insertCondition(int index,
ExcelCondition condition)
Inserts a new condition. |
void |
removeCondition(int index)
Removes the condition with the specified index. |
void |
setFirstColumn(int firstColumn)
Sets the first column of the cell range where the conditional formatting will be applied. |
void |
setFirstRow(int firstRow)
Sets the first row of the cell range where the conditional formatting will be applied. |
void |
setLastColumn(int lastColumn)
Sets the last column of the cell range where the conditional formatting will be applied. |
void |
setLastRow(int lastRow)
Sets the last row of the cell range where the conditional formatting will be applied. |
void |
setRange(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
Sets the range where the conditional formatting is applied. |
void |
setRange(System.String range)
Sets the range where the conditional formatting is applied. |
Constructor Detail |
public ExcelConditionalFormatting()
public ExcelConditionalFormatting(int firstRow, int firstColumn, int lastRow, int lastColumn, List lstConditions)
firstRow
- first row index of the cells rangefirstColumn
- first column index of the cells rangelastRow
- last row index of the cells rangelastColumn
- last column index of the cells rangelstConditions
- a list of ExcelCondition objectspublic ExcelConditionalFormatting(System.String range, List lstConditions)
range
- the area location of the conditional formatting. It can be a cell reference or a range.lstConditions
- a list of ExcelCondition objectspublic ExcelConditionalFormatting(System.String range, int nOperator, System.String firstFormula, System.String secondFormula)
range
- the area location of the conditional formatting. It can be a cell reference or a range.nOperator
- the conditional formatting operator. Possible values are available in ConditionalFormatting
class.firstFormula
- the conditional formatting first formulasecondFormula
- the conditional formatting second formulapublic ExcelConditionalFormatting(System.String range, int nOperator, System.String firstFormula, System.String secondFormula, bool isBold, bool isItalic, System.Drawing.Color foreground)
range
- the area location of the conditional formatting. It can be a cell reference or a range.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 fontpublic ExcelConditionalFormatting(System.String range, int nOperator, System.String firstFormula, System.String secondFormula, bool isBold, bool isItalic, System.Drawing.Color foreground, System.Drawing.Color background)
range
- the area location of the conditional formatting. It can be a cell reference or a range.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 backgroundpublic ExcelConditionalFormatting(System.String range, int nOperator, System.String firstFormula, System.String secondFormula, System.Drawing.Color background)
range
- the area location of the conditional formatting. It can be a cell reference or a range.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 backgroundMethod Detail |
public System.String getRange()
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
public void setFirstRow(int firstRow)
firstRow
- the first row of the cell range where the conditional formatting will be appliedgetFirstRow()
,
setLastRow(int)
,
setFirstColumn(int)
,
setLastColumn(int)
,
setRange(int,int,int,int)
,
setRange(String)
public int getFirstRow()
setFirstRow(int)
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
,
setRange(int,int,int,int)
,
setRange(String)
public void setLastRow(int lastRow)
lastRow
- the last row of the cell range where the conditional formatting will be appliedgetLastRow()
,
setFirstRow(int)
,
setFirstColumn(int)
,
setLastColumn(int)
,
setRange(int,int,int,int)
,
setRange(String)
public int getLastRow()
setLastRow(int)
,
getFirstRow()
,
getFirstColumn()
,
getLastColumn()
,
setRange(int,int,int,int)
,
setRange(String)
public void setFirstColumn(int firstColumn)
firstColumn
- the first column of the cell range where the conditional formatting will be appliedgetFirstColumn()
,
setFirstRow(int)
,
setLastRow(int)
,
setLastColumn(int)
,
setRange(int,int,int,int)
,
setRange(String)
public int getFirstColumn()
setFirstColumn(int)
,
getFirstRow()
,
getLastRow()
,
getLastColumn()
,
setRange(int,int,int,int)
,
setRange(String)
public void setLastColumn(int lastColumn)
lastColumn
- the last column of the cell range where the conditional formatting will be appliedgetLastColumn()
,
setFirstRow(int)
,
setLastRow(int)
,
setFirstColumn(int)
,
setRange(int,int,int,int)
,
setRange(String)
public int getLastColumn()
setLastColumn(int)
,
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
setRange(int,int,int,int)
,
setRange(String)
public void setRange(int firstRow, int firstColumn, int lastRow, int lastColumn)
firstRow
- first row index of the cells rangelastRow
- last row index of the cells rangefirstColumn
- first column index of the cells rangelastColumn
- last column index of the cells rangesetRange(String)
,
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
public void setRange(System.String range)
range
- the position where the conditional formatting is applied. It can be a cell reference or a range.setRange(int,int,int,int)
,
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
public void addCondition(ExcelCondition condition)
condition
- the condition and its settingsaddCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
getConditionAt(int)
,
ConditionCount()
public void addCondition(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 formulaaddCondition(ExcelCondition)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
getConditionAt(int)
,
ConditionCount()
public void addCondition(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 fontaddCondition(ExcelCondition)
,
addCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
getConditionAt(int)
,
ConditionCount()
public void addCondition(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 backgroundaddCondition(ExcelCondition)
,
addCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
removeCondition(int)
,
getConditionAt(int)
,
ConditionCount()
public void addCondition(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 backgroundaddCondition(ExcelCondition)
,
addCondition(int,String,String)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
getConditionAt(int)
,
ConditionCount()
public void insertCondition(int index, ExcelCondition condition)
index
- the index where the condition will be inserted in the rule list.condition
- the condition and its settingsaddCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
getConditionAt(int)
,
ConditionCount()
public int ConditionCount()
addCondition(ExcelCondition)
,
addCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
getConditionAt(int)
public void removeCondition(int index)
index
- the index of the condition that will be removedaddCondition(ExcelCondition)
,
addCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
getConditionAt(int)
,
ConditionCount()
public ExcelCondition getConditionAt(int index)
index
- the index of the returned condition
addCondition(ExcelCondition)
,
addCondition(int,String,String)
,
addCondition(int,String,String,Color)
,
addCondition(int,String,String,bool,bool,Color)
,
addCondition(int,String,String,bool,bool,Color,Color)
,
removeCondition(int)
,
ConditionCount()
public ExcelConditionalFormatting Clone()
|
Copyright 2009 On Time Computing Solutions | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |