ValidationModel
ValidationModel
概述
ValidationModel 是 Aspose.Cells FOSS for C++ 中的类。
表示验证模型。
此类提供 31 个方法,用于在 C++ 程序中操作 ValidationModel 对象。可用的方法包括:GetAlertStyle、GetAreas、GetErrorMessage、GetErrorTitle、GetFormula1、GetFormula2、GetIgnoreBlank、GetInCellDropDown、GetInputMessage、GetInputTitle、GetOperator、GetShowError,以及另外 18 个方法。安装 Aspose.Cells FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。访问器方法:OperatorType、ValidationAlertType、ValidationType。
访问器方法
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
ValidationType | ValidationType | 读取 | 获取验证类型。 |
ValidationAlertType | ValidationAlertType | 读取 | 获取验证警报类型。 |
OperatorType | OperatorType | 读取 | 获取运算符类型。 |
方法
| 签名 | 描述 |
|---|---|
ValidationType() → ValidationType | 获取或设置类型。 |
ValidationAlertType() → ValidationAlertType | 获取或设置警报样式。 |
OperatorType() → OperatorType | 获取或设置运算符。 |
GetAreas() → std::vector<CellArea> | 获取区域。 |
GetAreas() → std::vector<CellArea> | 返回区域。 |
GetType() → ValidationType | 获取或设置类型。 |
SetType(value: ValidationType) | 设置类型值。 |
GetAlertStyle() → ValidationAlertType | 获取或设置警报样式。 |
SetAlertStyle(value: ValidationAlertType) | 设置警报样式值。 |
GetOperator() → OperatorType | 获取或设置运算符。 |
SetOperator(value: OperatorType) | 设置运算符的值。 |
GetFormula1() → std::string | 获取或设置 formula1。 |
SetFormula1(value: std::string) | 设置 formula1 的值。 |
GetFormula2() → std::string | 获取或设置 formula2。 |
SetFormula2(value: std::string) | 设置 formula2 值。 |
GetIgnoreBlank() → bool | 获取或设置一个值,指示是否忽略空白。 |
SetIgnoreBlank(value: bool) | 设置忽略空白值。 |
GetInCellDropDown() → bool | 获取或设置一个值,指示是否在单元格下拉。 |
SetInCellDropDown(value: bool) | 设置单元格内的下拉值。 |
GetInputTitle() → std::string | 获取或设置输入标题。 |
SetInputTitle(value: std::string) | 设置输入标题的值。 |
GetInputMessage() → std::string | 获取或设置输入消息。 |
SetInputMessage(value: std::string) | 设置输入消息的值。 |
GetErrorTitle() → std::string | 获取或设置错误标题。 |
SetErrorTitle(value: std::string) | 设置错误标题值。 |
GetErrorMessage() → std::string | 获取或设置错误消息。 |
SetErrorMessage(value: std::string) | 设置错误消息的值。 |
GetShowInput() → bool | 获取或设置一个值,指示是否 show input。 |
SetShowInput(value: bool) | 设置显示输入值。 |
GetShowError() → bool | 获取或设置一个值,指示是否显示错误。 |
SetShowError(value: bool) | 设置显示错误的值。 |