Workbook
Workbook
Prezentare generală
Workbook este o struct în Aspose.Cells FOSS pentru Rust. Moștenește de la: Debug, Clone, PartialEq, și încă una.
Reprezintă obiectul rădăcină al foii de calcul utilizat pentru a crea, încărca, modifica și salva un registru de lucru XLSX.
Această struct declară 58 de metode pentru obiectele Workbook în programele Rust. Metodele disponibile includ: 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, și 46 de metode suplimentare. Membrii publici sunt accesibili oricărei aplicații Rust după instalarea pachetului Aspose.Cells FOSS pentru Rust.
Metode
| Semnătură | Descriere: |
|---|---|
default() → Self | Apelează default pe această instanță Workbook. |
new() → Self | Inițializează o nouă instanță. |
add_worksheet(name: impl Into<String>) → Result<usize, CellsError> | Adaugă un element. |
worksheet(name: &str) → Result<&Worksheet, CellsError> | Obține foaia de lucru cu numele specificat. |
worksheet_or_cells_exception(name: &str) → Result<&Worksheet, CellsException> | Obține foaia de lucru cu numele specificat, returnând un CellsException în caz de eșec. |
worksheet_at(index: usize) → Result<&Worksheet, CellsError> | Obține foaia de lucru la indexul zero-bazat specificat. |
worksheet_at_or_cells_exception(index: usize) → Result<&Worksheet, CellsException> | Obține foaia de lucru la indexul zero-bazat specificat, returnând un CellsException în caz de eșec. |
get_worksheets() → Worksheets<'_> | Obține foile de lucru în ordinea registrului de lucru. |
get_worksheets_mut() → WorksheetsMut<'_> | Obține valoarea asociată. |
settings() → WorkbookSettings | Obține setările la nivel de registru, cum ar fi sistemul de dată și cultura de afișare. |
get_settings() → WorkbookSettings | Obține setările la nivel de registru, cum ar fi sistemul de dată și cultura de afișare. |
set_settings(settings: WorkbookSettings) | Setează setările la nivel de registru, cum ar fi sistemul de dată și cultura de afișare. |
protect() | Protejează obiectul curent. |
unprotect() | Înlătură protecția obiectului curent. |
protection() → WorkbookProtection | Obține valoarea asociată. |
get_protection() → WorkbookProtection | Obține valoarea asociată. |
protection_mut() → &mut WorkbookProtection | Obține valoarea asociată. |
get_protection_mut() → &mut WorkbookProtection | Obține valoarea asociată. |
is_protected() → bool | Returnează dacă este protejat. |
properties() → &WorkbookProperties | Obține metadatele workbook-ului și setările de vizualizare expuse de API public suportat. |
get_properties() → &WorkbookProperties | Obține metadatele registrului de lucru și setările de vizualizare expuse de API public suportat. |
get_properties_mut() → &mut WorkbookProperties | Obține valoarea asociată. |
document_properties() → &DocumentProperties | Obține fațada proprietăților documentului pentru metadatele de bază și extinse. |
get_document_properties() → &DocumentProperties | Obține fațada proprietăților documentului pentru metadatele de bază și extinse. |
get_document_properties_mut() → &mut DocumentProperties | Obține valoarea asociată. |
defined_names() → DefinedNameCollection<'_> | Obține colecția de nume definite în registru. |
get_defined_names() → DefinedNameCollection<'_> | Obține colecția de nume definite în registrul de lucru. |
load_diagnostics() → &LoadDiagnostics | Obține diagnosticele colectate în timpul încărcării registrului de lucru curent. |
get_load_diagnostics() → &LoadDiagnostics | Obține diagnosticele colectate în timpul încărcării registrului de lucru curent. |
load_xlsx(path: impl AsRef<Path>) → Result<Self, CellsError> | Încarcă un registru de lucru. |
open(path: impl AsRef<Path>) → Result<Self, CellsError> | Deschide un registru de lucru existent. |
open_with_options(path: impl AsRef<Path>, options: &LoadOptions) → Result<Self, CellsError> | Deschide un registru de lucru existent. |
load_xlsx_with_options(path: impl AsRef<Path>, options: &LoadOptions) → Result<Self, CellsError> | Încarcă un registru de lucru. |
load_xlsx_from_stream(stream: R) → Result<Self, CellsError> | Încarcă un registru de lucru existent dintr-un flux utilizând opțiunile implicite de încărcare. |
open_from_stream(stream: R) → Result<Self, CellsError> | Deschide un registru de lucru existent dintr-un flux utilizând opțiunile implicite de încărcare. |
open_from_stream_with_options(stream: R, options: &LoadOptions) → Result<Self, CellsError> | Deschide un registru de lucru existent dintr-un flux utilizând opțiuni explicite de încărcare. |
load_xlsx_from_stream_or_workbook_load_exception(stream: R) → Result<Self, WorkbookLoadException> | Încarcă un registru de lucru existent dintr-un flux utilizând opțiuni implicite de încărcare. |
load_xlsx_from_stream_with_options(stream: R, options: &LoadOptions) → Result<Self, CellsError> | Încarcă un registru de lucru existent dintr-un flux utilizând opțiuni explicite de încărcare. |
load_xlsx_from_bytes(bytes: &[u8]) → Result<Self, CellsError> | Încarcă un registru de lucru. |
load_xlsx_from_bytes_or_workbook_load_exception(bytes: &[u8]) → Result<Self, WorkbookLoadException> | Încarcă un registru de lucru. |
load_xlsx_from_bytes_with_options(bytes: &[u8], options: &LoadOptions) → Result<Self, CellsError> | Încarcă un registru de lucru. |
save_xlsx(path: impl AsRef<Path>) → Result<(), CellsError> | Salvează registrul de lucru. |
save(path: impl AsRef<Path>) → Result<(), CellsError> | Salvează registrul de lucru într-un flux utilizând opțiuni explicite de salvare. |
save_with_format(path: impl AsRef<Path>, format: SaveFormat) → Result<(), CellsError> | Salvează registrul de lucru. |
save_with_options(path: impl AsRef<Path>, options: &SaveOptions) → Result<(), CellsError> | Salvează registrul de lucru. |
save_xlsx_with_format(path: impl AsRef<Path>, format: SaveFormat) → Result<(), CellsError> | Salvează registrul de lucru. |
save_xlsx_with_options(path: impl AsRef<Path>, options: &SaveOptions) → Result<(), CellsError> | Salvează registrul de lucru. |
save_xlsx_to_stream(stream: W) → Result<(), CellsError> | Salvează registrul de lucru într-un flux utilizând opțiunile implicite de salvare. |
save_to_stream_with_format(stream: W, format: SaveFormat) → Result<(), CellsError> | Salvează registrul de lucru într-un flux utilizând formatul de salvare specificat. |
save_to_stream_with_options(stream: W, options: &SaveOptions) → Result<(), CellsError> | Salvează registrul de lucru într-un flux utilizând opțiuni explicite de salvare. |
save_xlsx_to_stream_or_workbook_save_exception(stream: W) → Result<(), WorkbookSaveException> | Salvează registrul de lucru într-un flux și învelește erorile în WorkbookSaveException. |
save_xlsx_to_stream_with_format(stream: W, format: SaveFormat) → Result<(), CellsError> | Salvează caietul de lucru într-un flux utilizând formatul de salvare specificat. |
save_xlsx_to_stream_with_options(stream: W, options: &SaveOptions) → Result<(), CellsError> | Salvează caietul de lucru într-un flux utilizând opțiuni de salvare explicite. |
save_xlsx_to_bytes() → Result<Vec<u8>, CellsError> | Salvează caietul de lucru. |
save_xlsx_to_bytes_or_workbook_save_exception() → Result<Vec<u8>, WorkbookSaveException> | Salvează caietul de lucru. |
save_xlsx_to_bytes_with_format(format: SaveFormat) → Result<Vec<u8>, CellsError> | Salvează caietul de lucru. |
save_xlsx_to_bytes_with_options(options: &SaveOptions) → Result<Vec<u8>, CellsError> | Salvează registrul de lucru. |
dispose() | Eliberează resursele asociate cu instanța workbook. |