|
ActiveXLS v6.4.0 API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |
System.ObjectActiveXLS.ExcelDataValidator
This class restricts the cell entries to a specific data type (integers, decimal numbers, or text) and sets limits on the valid entries. The validation is stored as one formula for "equal to", "not equal to", "greater than", "less than", "greater than or equal to" or "less than or equal to" operators and two formulas for "between" and "not between" operators.
Constructor Summary | |
ExcelDataValidator()
Defines an instance of the validator. |
|
ExcelDataValidator(int firstRow,
int firstColumn,
int lastRow,
int lastColumn,
int validationType,
int operatorType,
System.String firstFormula,
System.String secondFormula)
Defines an instance of the validator having the specified position, validation type, operator and formula restrictions. |
|
ExcelDataValidator(System.String range,
int validationType,
int operatorType,
System.String firstFormula,
System.String secondFormula)
Defines an instance of the validator having the specified position, validation type, operator and formula restrictions. |
Method Summary | |
void |
ApplyToRange(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
Sets the cell range where the validation will be applied. |
void |
ApplyToRange(System.String range)
Sets the cell range where the validation will be applied. |
ExcelDataValidator |
Clone()
Creates and returns a copy of this object. |
int |
getErrorStyle()
Returns the "Error Alert" box style. |
System.String |
getErrorText()
Returns the message of the "Error Alert" |
System.String |
getErrorTitle()
Returns the title of the "Error Alert" |
int |
getFirstColumn()
Returns the first column of the cell range where the validation will be applied. |
System.String |
getFirstFormula()
Returns the expression of the first formula. |
int |
getFirstRow()
Returns the first row of the cell range where the validation will be applied. |
System.String |
getInputText()
Returns the message of the "Input Message" |
System.String |
getInputTitle()
Returns the title of the "Input Message" |
int |
getLastColumn()
Returns the last column of the cell range where the validation will be applied. |
int |
getLastRow()
Returns the last row of the cell range where the validation will be applied. |
int |
getOperatorType()
Returns the operator type. |
System.String |
getRange()
Returns the range where the validation will be aplied. |
System.String |
getSecondFormula()
Returns the expression of the second formula. |
int |
getValidationType()
Returns the validation type. |
bool |
IgnoreBlank()
Returns the ignore blank option. |
bool |
IsShowErrorBox()
Returns the show "Error Alert" box option. |
bool |
IsShowInputBox()
Returns the show "Input Message" box option. |
void |
setErrorAlert(System.String title,
System.String text)
Sets the title and the message of the "Error Alert" |
void |
setErrorStyle(int errorStyle)
Sets the "Error Alert" box style. |
void |
setErrorText(System.String textError)
Sets the message of the "Error Alert" |
void |
setErrorTitle(System.String errorTitle)
Sets the title of the "Error Alert" |
void |
setFirstColumn(int firstColumn)
Sets the first column of the cell range where the validation will be applied. |
void |
setFirstFormula(System.String formula)
Sets the expression of the first formula. |
void |
setFirstRow(int firstRow)
Sets the first row of the cell range where the validation will be applied. |
void |
setIgnoreBlank(bool ignoreBlank)
Sets the ignore blank option. |
void |
setInputMessage(System.String title,
System.String text)
Sets the title and the message of the "Input Message" |
void |
setInputText(System.String inputText)
Sets the message of the "Input Message" |
void |
setInputTitle(System.String inputTitle)
Sets the title of the "Input Message" |
void |
setIsShowErrorBox(bool showErrorBox)
Sets the show "Error Alert" box option. |
void |
setIsShowInputBox(bool showInputBox)
Sets the show "Input Message" box option. |
void |
setLastColumn(int lastColumn)
Sets the last column of the cell range where the validation will be applied. |
void |
setLastRow(int lastRow)
Sets the last row of the cell range where the validation will be applied. |
void |
setOperatorType(int operatorType)
Sets the operator type. |
void |
setSecondFormula(System.String formula)
Sets the expression of the second formula. |
void |
setValidationType(int validationType)
Sets the validation type. |
Constructor Detail |
public ExcelDataValidator()
public ExcelDataValidator(System.String range, int validationType, int operatorType, System.String firstFormula, System.String secondFormula)
range
- the area location of the data validator. It can be a cell reference or a range.operatorType
- the operator type. Possible values are available in DataValidator
class.validationType
- the validation type. Possible values are available in DataValidator
class.firstFormula
- the expression of the first formulasecondFormula
- the expression of the second formulapublic ExcelDataValidator(int firstRow, int firstColumn, int lastRow, int lastColumn, int validationType, int operatorType, System.String firstFormula, System.String secondFormula)
firstRow
- the first row of the cell range where the validation will be appliedfirstColumn
- the first column of the cell range where the validation will be appliedlastRow
- the last row of the cell range where the validation will be appliedlastColumn
- the last column of the cell range where the validation will be appliedoperatorType
- the operator type. Possible values are available in DataValidator
class.validationType
- the validation type. Possible values are available in DataValidator
class.firstFormula
- the expression of the first formulasecondFormula
- the expression of the second formulaMethod Detail |
public int getValidationType()
DataValidator
class.
setValidationType(int)
public void setValidationType(int validationType)
DataValidator
class.
validationType
- the validation typegetValidationType()
public int getErrorStyle()
DataValidator
class.
setErrorStyle(int)
public void setErrorStyle(int errorStyle)
DataValidator
class.
errorStyle
- the style of the "Error Alert" boxgetErrorStyle()
public bool IgnoreBlank()
setIgnoreBlank(bool)
public void setIgnoreBlank(bool ignoreBlank)
ignoreBlank
- the ignore blank optionIgnoreBlank()
public bool IsShowInputBox()
setIsShowInputBox(bool)
public void setIsShowInputBox(bool showInputBox)
showInputBox
- the ishow "Input Message" box optionIsShowInputBox()
public bool IsShowErrorBox()
setIsShowErrorBox(bool)
public void setIsShowErrorBox(bool showErrorBox)
showErrorBox
- the ishow "Error Alert" box optionIsShowErrorBox()
public int getOperatorType()
DataValidator
class.
setOperatorType(int)
public void setOperatorType(int operatorType)
DataValidator
class.
operatorType
- the operator typegetOperatorType()
public System.String getRange()
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
public int getFirstRow()
setFirstRow(int)
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
,
ApplyToRange(int, int, int, int)
public void setFirstRow(int firstRow)
firstRow
- the first row of the cell range where the validation will be appliedgetFirstRow()
,
setLastRow(int)
,
setFirstColumn(int)
,
setLastColumn(int)
,
ApplyToRange(int, int, int, int)
public int getLastRow()
setLastRow(int)
,
getFirstRow()
,
getFirstColumn()
,
getLastColumn()
,
ApplyToRange(int, int, int, int)
public void setLastRow(int lastRow)
lastRow
- the last row of the cell range where the validation will be appliedgetLastRow()
,
setFirstRow(int)
,
setFirstColumn(int)
,
setLastColumn(int)
,
ApplyToRange(int, int, int, int)
public int getFirstColumn()
setFirstColumn(int)
,
getFirstRow()
,
getLastRow()
,
getLastColumn()
,
ApplyToRange(int, int, int, int)
public void setFirstColumn(int firstColumn)
firstColumn
- the first column of the cell range where the validation will be appliedgetFirstColumn()
,
setFirstRow(int)
,
setLastRow(int)
,
setLastColumn(int)
,
ApplyToRange(int, int, int, int)
public int getLastColumn()
setLastColumn(int)
,
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
ApplyToRange(int, int, int, int)
public void setLastColumn(int lastColumn)
lastColumn
- the last column of the cell range where the validation will be appliedgetLastColumn()
,
setFirstRow(int)
,
setLastRow(int)
,
setFirstColumn(int)
,
ApplyToRange(int, int, int, int)
public void ApplyToRange(int firstRow, int firstColumn, int lastRow, int lastColumn)
firstRow
- the first row of the cell range where the validation will be appliedfirstColumn
- the first column of the cell range where the validation will be appliedlastRow
- the last row of the cell range where the validation will be appliedlastColumn
- the last column of the cell range where the validation will be appliedApplyToRange(String)
,
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
public void ApplyToRange(System.String range)
range
- cell range where the validation will be applied. It can be a cell reference or a range.ApplyToRange(int,int,int,int)
,
getFirstRow()
,
getLastRow()
,
getFirstColumn()
,
getLastColumn()
public System.String getFirstFormula()
setFirstFormula(System.String)
,
getSecondFormula()
,
setSecondFormula(System.String)
public void setFirstFormula(System.String formula)
formula
- the expression of the first formulagetFirstFormula()
,
getSecondFormula()
,
setSecondFormula(System.String)
public System.String getSecondFormula()
setSecondFormula(System.String)
,
setFirstFormula(System.String)
,
getSecondFormula()
public void setSecondFormula(System.String formula)
formula
- the expression of the second formulagetSecondFormula()
,
getFirstFormula()
,
setSecondFormula(System.String)
public void setInputTitle(System.String inputTitle)
inputTitle
- the title of the "Input Message"getInputTitle()
public System.String getInputTitle()
setInputTitle(System.String)
public void setErrorTitle(System.String errorTitle)
errorTitle
- the title of the "Error Alert"getErrorTitle()
public System.String getErrorTitle()
setErrorTitle(System.String)
public void setInputText(System.String inputText)
inputText
- the message of the "Input Message"getInputText()
public System.String getInputText()
setInputText(System.String)
public void setErrorText(System.String textError)
textError
- the message of the "Error Alert"getErrorText()
public System.String getErrorText()
setErrorText(System.String)
public void setInputMessage(System.String title, System.String text)
title
- the title of the "Input Message"text
- the message of the "Error Alert"setInputTitle(System.String)
,
setInputText(System.String)
public void setErrorAlert(System.String title, System.String text)
title
- the message of the "Error Alert"text
- the message of the "Error Alert"setErrorTitle(System.String)
,
setErrorText(System.String)
public ExcelDataValidator Clone()
|
Copyright 2009 On Time Computing Solutions | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |