XlsxWorkbookWorksheetProtection
概述
XlsxWorkbookWorksheetProtection 是 Aspose.Cells Rust 的 FOSS 中的结构体。继承自:Default、Clone、PartialEq。
此结构体为 Rust 程序中的 XlsxWorkbookWorksheetProtection 对象声明了 6 个方法。可用的方法包括:build_sheet_protection_element、load_worksheet_protection、parse_protection_boolean_attribute、read_optional_attribute、set_bool_attribute_when_true、set_string_attribute_when_present。在安装了 Aspose.Cells Rust 的 FOSS 包后,公共成员对任何 Rust 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
build_sheet_protection_element(worksheet: WorksheetModel) → serde_json::Value | 在此 XlsxWorkbookWorksheetProtection 实例上调用 build_sheet_protection_element(worksheet)。 |
load_worksheet_protection(worksheet_model: WorksheetModel, worksheet_root: serde_json::Value, diagnostics: LoadDiagnostics, options: LoadOptions, sheet_name: String) | 在此 XlsxWorkbookWorksheetProtection 实例上调用 load_worksheet_protection(worksheet_model, worksheet_root, diagnostics, options, sheet_name)。 |
parse_protection_boolean_attribute(attribute: serde_json::Value, default_value: bool, diagnostics: LoadDiagnostics, options: LoadOptions, sheet_name: String, attribute_name: String) → bool | 在此 XlsxWorkbookWorksheetProtection 实例上调用 parse_protection_boolean_attribute(attribute, default_value, diagnostics, options, sheet_name, attribute_name)。 |
read_optional_attribute(element: serde_json::Value, attribute_name: String) → String | 在此 XlsxWorkbookWorksheetProtection 实例上调用 read_optional_attribute(element, attribute_name)。 |
set_bool_attribute_when_true(element: serde_json::Value, attribute_name: String, value: bool) | 当值为 true 时设置布尔属性。 |
set_string_attribute_when_present(element: serde_json::Value, attribute_name: String, value: String) | 当提供值时设置字符串属性。 |