Workbook

Workbook

概要

Workbook は Aspose.Cells の Rust 用 FOSS における構造体です。継承元: Debug、Clone、PartialEq、および 1 つのその他。

XLSX ワークブックを作成、読み込み、変更、保存するために使用されるルートスプレッドシートオブジェクトを表します。

この構造体は Rust プログラムにおける Workbook オブジェクト用に 58 個のメソッドを宣言しています。利用可能なメソッドには 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 個のメソッドが含まれます。パブリックメンバーは、Aspose.Cells の Rust 用 FOSS パッケージをインストールした後、任意の Rust アプリケーションからアクセス可能です。

メソッド

シグネチャ説明
default() → Selfこの Workbook インスタンスで default を呼び出します。
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_at_or_cells_exception(index: usize) → Result<&Worksheet, CellsException>指定されたゼロベースのインデックスのワークシートを取得し、失敗した場合は CellsException を返します。
get_worksheets() → Worksheets<'_>ブックの順序でワークシートを取得します。
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コアおよび拡張メタデータのドキュメントプロパティFacadeを取得します。
get_document_properties() → &DocumentPropertiesコアおよび拡張メタデータのドキュメントプロパティFacadeを取得します。
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>ワークブックを保存します。
save_with_options(path: impl AsRef<Path>, options: &SaveOptions) → Result<(), CellsError>ワークブックを保存します。
save_xlsx_with_format(path: impl AsRef<Path>, format: SaveFormat) → Result<(), CellsError>ワークブックを保存します。
save_xlsx_with_options(path: impl AsRef<Path>, options: &SaveOptions) → Result<(), CellsError>ワークブックを保存します。
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()ワークブック インスタンスに関連付けられたリソースを解放します。

参照

 日本語