Workbook
Workbook
ภาพรวม
Workbook เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust. สืบทอดจาก: Debug, Clone, PartialEq, และอีก 1 รายการ.
แทนวัตถุตารางคำนวณระดับรากที่ใช้เพื่อสร้าง, โหลด, แก้ไข และบันทึกเวิร์กบุ๊ก XLSX.
struct นี้ประกาศ 58 เมธอดสำหรับอ็อบเจ็กต์ Workbook ในโปรแกรม Rust. เมธอดที่ใช้ได้รวมถึง: add_worksheet, default, defined_names, dispose, document_properties, get_defined_names, get_document_properties, get_document_properties_mut, get_load_diagnostics, get_properties, get_properties_mut, get_protection, และเมธอดเพิ่มเติมอีก 46 รายการ. สมาชิกสาธารณะสามารถเข้าถึงได้จากแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Cells FOSS สำหรับ Rust.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
default() → Self | เรียกใช้ค่าเริ่มต้นบนอินสแตนซ์ Workbook นี้. |
new() → Self | เริ่มต้นอินสแตนซ์ใหม่. |
add_worksheet(name: impl Into<String>) → Result<usize, CellsError> | เพิ่มรายการ. |
worksheet(name: &str) → Result<&Worksheet, CellsError> | รับแผ่นงานที่มีชื่อที่ระบุ. |
worksheet_or_cells_exception(name: &str) → Result<&Worksheet, CellsException> | ดึงแผ่นงานที่มีชื่อที่ระบุ, คืนค่า CellsException หากล้มเหลว. |
worksheet_at(index: usize) → Result<&Worksheet, CellsError> | รับ worksheet ที่ตำแหน่ง index ที่เริ่มจากศูนย์ตามที่ระบุ. |
worksheet_at_or_cells_exception(index: usize) → Result<&Worksheet, CellsException> | ดึงแผ่นงานที่ตำแหน่งตามดัชนีเริ่มจากศูนย์ที่ระบุ, คืนค่า CellsException หากล้มเหลว. |
get_worksheets() → Worksheets<'_> | ดึง worksheets ตามลำดับของ workbook. |
get_worksheets_mut() → WorksheetsMut<'_> | รับค่าที่เกี่ยวข้อง. |
settings() → WorkbookSettings | ดึงการตั้งค่าระดับสมุดงาน เช่น ระบบวันที่และวัฒนธรรมการแสดงผล. |
get_settings() → WorkbookSettings | ดึงการตั้งค่าระดับเวิร์กบุ๊ก เช่น ระบบวันที่และวัฒนธรรมการแสดงผล. |
set_settings(settings: WorkbookSettings) | ตั้งค่าระดับเวิร์กบุ๊ก เช่น ระบบวันที่และวัฒนธรรมการแสดงผล. |
protect() | ปกป้องอ็อบเจกต์ปัจจุบัน. |
unprotect() | ลบการปกป้องออกจากอ็อบเจกต์ปัจจุบัน. |
protection() → WorkbookProtection | รับค่าที่เกี่ยวข้อง. |
get_protection() → WorkbookProtection | รับค่าที่เกี่ยวข้อง. |
protection_mut() → &mut WorkbookProtection | รับค่าที่เกี่ยวข้อง. |
get_protection_mut() → &mut WorkbookProtection | รับค่าที่เกี่ยวข้อง. |
is_protected() → bool | ส่งคืนว่ามีการป้องกันหรือไม่. |
properties() → &WorkbookProperties | ดึงข้อมูลเมตาเวิร์กบุ๊กและการตั้งค่าการดูที่เปิดเผยโดย API สาธารณะที่รองรับ. |
get_properties() → &WorkbookProperties | ดึงข้อมูลเมตาเวิร์กบุ๊กและการตั้งค่าการมองเห็นที่เปิดเผยโดย API สาธารณะที่รองรับ. |
get_properties_mut() → &mut WorkbookProperties | รับค่าที่เกี่ยวข้อง. |
document_properties() → &DocumentProperties | ดึงเฟซาดคุณสมบัติเอกสารสำหรับเมตาดาต้าแกนและเมตาดาต้าแบบขยาย. |
get_document_properties() → &DocumentProperties | ดึงเฟซาดคุณสมบัติเอกสารสำหรับเมตาดาต้าแกนและเมตาดาต้าแบบขยาย. |
get_document_properties_mut() → &mut DocumentProperties | รับค่าที่เกี่ยวข้อง. |
defined_names() → DefinedNameCollection<'_> | รับคอลเลกชันชื่อที่กำหนดไว้ในสมุดงาน. |
get_defined_names() → DefinedNameCollection<'_> | รับคอลเลกชันชื่อที่กำหนดไว้ในเวิร์กบุ๊ก. |
load_diagnostics() → &LoadDiagnostics | รับการวินิจฉัยที่เก็บรวบรวมไว้ขณะโหลดสมุดงานปัจจุบัน. |
get_load_diagnostics() → &LoadDiagnostics | รับการวินิจฉัยที่เก็บรวบรวมไว้ขณะโหลดสมุดงานปัจจุบัน. |
load_xlsx(path: impl AsRef<Path>) → Result<Self, CellsError> | โหลดสมุดงาน. |
open(path: impl AsRef<Path>) → Result<Self, CellsError> | เปิดสมุดงานที่มีอยู่แล้ว. |
open_with_options(path: impl AsRef<Path>, options: &LoadOptions) → Result<Self, CellsError> | เปิดเวิร์กบุ๊กที่มีอยู่แล้ว. |
load_xlsx_with_options(path: impl AsRef<Path>, options: &LoadOptions) → Result<Self, CellsError> | โหลดเวิร์กบุ๊ก. |
load_xlsx_from_stream(stream: R) → Result<Self, CellsError> | โหลดเวิร์กบุ๊กที่มีอยู่แล้วจากสตรีมโดยใช้ตัวเลือกการโหลดเริ่มต้น. |
open_from_stream(stream: R) → Result<Self, CellsError> | เปิดเวิร์กบุ๊กที่มีอยู่แล้วจากสตรีมโดยใช้ตัวเลือกการโหลดเริ่มต้น. |
open_from_stream_with_options(stream: R, options: &LoadOptions) → Result<Self, CellsError> | เปิดเวิร์กบุ๊กที่มีอยู่จากสตรีมโดยใช้ตัวเลือกการโหลดแบบชัดเจน. |
load_xlsx_from_stream_or_workbook_load_exception(stream: R) → Result<Self, WorkbookLoadException> | โหลดเวิร์กบุ๊กที่มีอยู่จากสตรีมโดยใช้ตัวเลือกการโหลดเริ่มต้น. |
load_xlsx_from_stream_with_options(stream: R, options: &LoadOptions) → Result<Self, CellsError> | โหลดเวิร์กบุ๊กที่มีอยู่จากสตรีมโดยใช้ตัวเลือกการโหลดแบบชัดเจน. |
load_xlsx_from_bytes(bytes: &[u8]) → Result<Self, CellsError> | โหลดเวิร์กบุ๊ก. |
load_xlsx_from_bytes_or_workbook_load_exception(bytes: &[u8]) → Result<Self, WorkbookLoadException> | โหลดสมุดงาน. |
load_xlsx_from_bytes_with_options(bytes: &[u8], options: &LoadOptions) → Result<Self, CellsError> | โหลดสมุดงาน. |
save_xlsx(path: impl AsRef<Path>) → Result<(), CellsError> | บันทึกสมุดงาน. |
save(path: impl AsRef<Path>) → Result<(), CellsError> | บันทึกสมุดงานไปยังสตรีมโดยใช้ตัวเลือกการบันทึกแบบชัดเจน. |
save_with_format(path: impl AsRef<Path>, format: SaveFormat) → Result<(), CellsError> | บันทึก workbook. |
save_with_options(path: impl AsRef<Path>, options: &SaveOptions) → Result<(), CellsError> | บันทึก workbook. |
save_xlsx_with_format(path: impl AsRef<Path>, format: SaveFormat) → Result<(), CellsError> | บันทึก workbook. |
save_xlsx_with_options(path: impl AsRef<Path>, options: &SaveOptions) → Result<(), CellsError> | บันทึก workbook. |
save_xlsx_to_stream(stream: W) → Result<(), CellsError> | บันทึกเวิร์กบุ๊กไปยังสตรีมโดยใช้ตัวเลือกการบันทึกเริ่มต้น. |
save_to_stream_with_format(stream: W, format: SaveFormat) → Result<(), CellsError> | บันทึกเวิร์กบุ๊กไปยังสตรีมโดยใช้รูปแบบการบันทึกที่ระบุ. |
save_to_stream_with_options(stream: W, options: &SaveOptions) → Result<(), CellsError> | บันทึกเวิร์กบุ๊กไปยังสตรีมโดยใช้ตัวเลือกการบันทึกอย่างชัดเจน. |
save_xlsx_to_stream_or_workbook_save_exception(stream: W) → Result<(), WorkbookSaveException> | บันทึกเวิร์กบุ๊กไปยังสตรีมและห่อข้อผิดพลาดด้วย WorkbookSaveException. |
save_xlsx_to_stream_with_format(stream: W, format: SaveFormat) → Result<(), CellsError> | บันทึกเวิร์กบุ๊กไปยังสตรีมโดยใช้รูปแบบการบันทึกที่ระบุ. |
save_xlsx_to_stream_with_options(stream: W, options: &SaveOptions) → Result<(), CellsError> | บันทึกเวิร์กบุ๊กไปยังสตรีมโดยใช้ตัวเลือกการบันทึกอย่างชัดเจน. |
save_xlsx_to_bytes() → Result<Vec<u8>, CellsError> | บันทึกเวิร์กบุ๊ก. |
save_xlsx_to_bytes_or_workbook_save_exception() → Result<Vec<u8>, WorkbookSaveException> | บันทึกเวิร์กบุ๊ก. |
save_xlsx_to_bytes_with_format(format: SaveFormat) → Result<Vec<u8>, CellsError> | บันทึกเวิร์กบุ๊ก. |
save_xlsx_to_bytes_with_options(options: &SaveOptions) → Result<Vec<u8>, CellsError> | บันทึกสมุดงาน. |
dispose() | ปล่อยทรัพยากรที่เชื่อมโยงกับอินสแตนซ์ของสมุดงาน. |