ValidationModel
概述
ValidationModel 是 Aspose.Cells FOSS 中用于 Java 的类。
表示 Excel 文件中的数据验证模型。
此类提供 28 个方法,用于在 Java 程序中处理 ValidationModel 对象。可用的方法包括:ValidationModel、getAlertStyle、getAreas、getErrorMessage、getErrorTitle、getFormula1、getFormula2、getIgnoreBlank、getInCellDropDown、getInputMessage、getInputTitle、getOperator,以及另外 16 个方法。安装 Aspose.Cells FOSS for Java 包后,所有导出成员对任何 Java 应用程序均可访问。属性包括:alertStyle、areas、errorMessage、errorTitle、formula1、formula2,以及另外 8 项。
描述
ValidationModel 是 Aspose.Cells FOSS 库中用于 Java 的类,提供 27 个方法和 14 个属性供编程使用。
核心功能包括:list<cellarea>;validationtype;validationalerttype。这些操作使开发者能够将 validationmodel 功能直接集成到 Java 应用程序中。
该类还提供 areas 属性(返回区域),type 属性(返回类型),以及 alertStyle 属性(返回警报样式)。
实例通过单一构造函数创建,该构造函数使用默认值初始化对象。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
areas | List<CellArea> | 读取 | 返回区域。 |
type | ValidationType | 读取 | 返回类型。 |
alertStyle | ValidationAlertType | 读取 | 返回警报样式。 |
operator | OperatorType | 读取 | 返回运算符。 |
formula1 | String | 读取 | 返回公式 1。 |
formula2 | String | 读取 | 返回公式 2. |
ignoreBlank | boolean | 读取 | 返回忽略空白. |
inCellDropDown | boolean | 读取 | 返回单元格内下拉列表. |
inputTitle | String | 读取 | 返回输入的标题。 |
inputMessage | String | 读取 | 返回输入的消息。 |
errorTitle | String | 读取 | 返回错误标题。 |
errorMessage | String | 读取 | 返回错误信息。 |
showInput | boolean | 读取 | 返回显示输入。 |
showError | boolean | 读取 | 返回显示错误。 |
方法
| 签名 | 描述 |
|---|---|
ValidationModel() | 初始化一个新的 ValidationModel 实例。 |
getAreas() → List<CellArea> | 返回区域。 |
getType() → ValidationType | 返回类型。 |
setType(type: ValidationType) | 设置类型。 |
getAlertStyle() → ValidationAlertType | 返回警报样式。 |
setAlertStyle(alertStyle: ValidationAlertType) | 设置警报样式。 |
getOperator() → OperatorType | 返回运算符。 |
setOperator(operator: OperatorType) | 设置运算符。 |
getFormula1() → String | 返回公式 1。 |
setFormula1(formula1: String) | 设置公式 1。 |
getFormula2() → String | 返回公式 2。 |
setFormula2(formula2: String) | 设置公式 2。 |
getIgnoreBlank() → boolean | 返回忽略空白。 |
setIgnoreBlank(ignoreBlank: boolean) | 设置忽略空白。 |
getInCellDropDown() → boolean | 返回单元格内的下拉列表。 |
setInCellDropDown(inCellDropDown: boolean) | 设置单元格内的下拉列表。 |
getInputTitle() → String | 返回输入的标题。 |
setInputTitle(inputTitle: String) | 设置输入标题。 |
getInputMessage() → String | 返回输入的消息。 |
setInputMessage(inputMessage: String) | 设置输入消息。 |
getErrorTitle() → String | 返回错误标题。 |
setErrorTitle(errorTitle: String) | 设置错误标题。 |
getErrorMessage() → String | 返回错误信息。 |
setErrorMessage(errorMessage: String) | 设置错误消息。 |
getShowInput() → boolean | 返回显示输入。 |
setShowInput(showInput: boolean) | 设置显示输入。 |
getShowError() → boolean | 返回显示错误。 |
setShowError(showError: boolean) | 设置显示错误。 |