WorksheetsMut

Overview

WorksheetsMut is a struct in Aspose.Cells FOSS for Rust.

Encapsulates the workbook’s worksheets and active-sheet state.

This struct provides 19 methods for working with WorksheetsMut objects in Rust programs. Available methods include: active_sheet_index, active_sheet_name, add, add_default, count, get, get_active_sheet_index, get_active_sheet_name, get_by_name, get_count, get_ref, is_empty, and 7 additional methods. All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.

Methods

SignatureDescription
add(name: impl Into<String>)Result<usize, CellsError>Adds a worksheet with the specified name and returns its index.
add_default()Result<usize, CellsError>Adds an item.
count()usizeGets the number of items.
get_count()usizeGets the number of items.
get(index: usize)Result<&mut Worksheet, CellsError>Gets the item from the collection.
item(index: usize)Result<&mut Worksheet, CellsError>Gets the item from the collection.
get_by_name(name: &str)Result<&mut Worksheet, CellsError>Gets the associated value.
item_by_name(name: &str)Result<&mut Worksheet, CellsError>Gets the item from the collection.
get_ref(index: usize)Result<&Worksheet, CellsError>Read-only accessor by index; useful when only shared access is needed.
active_sheet_index()usizeGets the zero-based index of the active worksheet.
get_active_sheet_index()usizeGets the zero-based index of the active worksheet.
set_active_sheet_index(value: usize)Result<(), CellsError>Sets the zero-based index of the active worksheet.
active_sheet_name()StringGets the name of the active worksheet.
get_active_sheet_name()StringGets the name of the active worksheet.
set_active_sheet_name(value: &str)Result<(), CellsError>Sets the name of the active worksheet.
remove_at(index: usize)Result<(), CellsError>Removes an item.
remove_at_name(name: &str)Result<(), CellsError>Removes an item.
len()usizeGets the number of items in the collection.
is_empty()boolReturns whether the collection is empty.

See Also