Validation
概述
Validation 是 Aspose.Cells Rust 的 FOSS 中的结构体。
表示验证。
此结构体为 Rust 程序中的 Validation 对象声明了 29 个方法。可用的方法包括:add_area、areas、get_alert_style、get_error_message、get_error_title、get_formula1、get_formula2、get_ignore_blank、get_in_cell_drop_down、get_input_message、get_input_title、get_operator,以及另外 17 个方法。公共成员在安装 Aspose.Cells FOSS for Rust 包后,可供任何 Rust 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
areas() → Vec<CellArea> | 获取此验证适用的区域。 |
get_type() → ValidationType | 获取类型。 |
set_type(value: ValidationType) | 设置类型。 |
get_alert_style() → ValidationAlertType | 获取警报样式。 |
set_alert_style(value: ValidationAlertType) | 设置警报样式。 |
get_operator() → OperatorType | 获取运算符。 |
set_operator(value: OperatorType) | 设置运算符。 |
get_formula1() → &str | 获取 formula1。 |
set_formula1(value: impl Into<String>) | 设置 formula1。 |
get_formula2() → &str | 获取 formula2。 |
set_formula2(value: impl Into<String>) | 设置 formula2。 |
get_ignore_blank() → bool | 获取一个值,指示是否忽略空白。 |
set_ignore_blank(value: bool) | 设置一个值,指示是否忽略空白。 |
get_in_cell_drop_down() → bool | 获取一个值,指示是否在单元格下拉中。 |
set_in_cell_drop_down(value: bool) | 设置一个值,指示是否在单元格下拉中。 |
get_input_title() → &str | 获取输入标题。 |
set_input_title(value: impl Into<String>) | 设置输入标题。 |
get_input_message() → &str | 获取输入消息。 |
set_input_message(value: impl Into<String>) | 设置输入消息。 |
get_error_title() → &str | 获取错误标题。 |
set_error_title(value: impl Into<String>) | 设置错误标题。 |
get_error_message() → &str | 获取错误消息。 |
set_error_message(value: impl Into<String>) | 设置错误消息。 |
get_show_input() → bool | 获取一个值,指示是否显示输入。 |
set_show_input(value: bool) | 设置一个值,指示是否显示输入。 |
get_show_error() → bool | 获取一个值,指示是否显示错误。 |
set_show_error(value: bool) | 设置指示是否显示错误的值。 |
add_area(area: CellArea) → Result<(), CellsError> | 添加一个项目。 |
remove_area(area: CellArea) → Result<(), CellsError> | 删除一个项目。 |