XlsxWorkbookWorksheetProtection
XlsxWorkbookWorksheetProtection
ภาพรวม
XlsxWorkbookWorksheetProtection เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust. สืบทอดจาก: Default, Clone, PartialEq.
struct นี้ประกาศ 6 เมธอดสำหรับอ็อบเจ็กต์ XlsxWorkbookWorksheetProtection ในโปรแกรม Rust. เมธอดที่มี ได้แก่: build_sheet_protection_element, load_worksheet_protection, parse_protection_boolean_attribute, read_optional_attribute, set_bool_attribute_when_true, set_string_attribute_when_present. สมาชิกสาธารณะสามารถเข้าถึงได้โดยแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.Cells FOSS สำหรับ Rust.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
build_sheet_protection_element(worksheet: WorksheetModel) → serde_json::Value | เรียก build_sheet_protection_element(worksheet) บนอินสแตนซ์ XlsxWorkbookWorksheetProtection นี้. |
load_worksheet_protection(worksheet_model: WorksheetModel, worksheet_root: serde_json::Value, diagnostics: LoadDiagnostics, options: LoadOptions, sheet_name: String) | เรียก load_worksheet_protection(worksheet_model, worksheet_root, diagnostics, options, sheet_name) บนอินสแตนซ์ XlsxWorkbookWorksheetProtection นี้. |
parse_protection_boolean_attribute(attribute: serde_json::Value, default_value: bool, diagnostics: LoadDiagnostics, options: LoadOptions, sheet_name: String, attribute_name: String) → bool | เรียก parse_protection_boolean_attribute(attribute, default_value, diagnostics, options, sheet_name, attribute_name) บนอินสแตนซ์ XlsxWorkbookWorksheetProtection นี้. |
read_optional_attribute(element: serde_json::Value, attribute_name: String) → String | เรียก read_optional_attribute(element, attribute_name) บนอินสแตนซ์ XlsxWorkbookWorksheetProtection นี้. |
set_bool_attribute_when_true(element: serde_json::Value, attribute_name: String, value: bool) | ตั้งค่าแอตทริบิวต์ bool เมื่อค่าเป็น true. |
set_string_attribute_when_present(element: serde_json::Value, attribute_name: String, value: String) | ตั้งค่าแอตทริบิวต์สตริงเมื่อมีค่าที่ปรากฏ. |