pub struct Spreadsheet { /* private fields */ }
Expand description

A Spreadsheet Object. The starting point of all struct.

Implementations

Insert new rows.

Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • row_index - Specify point of insert. ex) 1
  • num_rows - Specify number to insert. ex) 2
Examples
let mut book = umya_spreadsheet::new_file();
book.insert_new_row("Sheet1", 2, 3);

Insert new colmuns.

Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • column - Specify point of insert. ex) “B”
  • num_columns - Specify number to insert. ex) 3
Examples
let mut book = umya_spreadsheet::new_file();
book.insert_new_colmun("Sheet1", "B", 3);

Insert new colmuns.

Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • column_index - Specify point of insert. ex) 2
  • num_columns - Specify number to insert. ex) 3
Examples
let mut book = umya_spreadsheet::new_file();
book.insert_new_colmun_by_index("Sheet1", 2, 3);

Remove rows.

Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • row_index - Specify point of remove. ex) 1
  • num_rows - Specify number to remove. ex) 2
Examples
let mut book = umya_spreadsheet::new_file();
book.remove_row("Sheet1", 2, 3);

Remove colmuns.

Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • column - Specify point of remove. ex) “B”
  • num_columns - Specify number to remove. ex) 3
Examples
let mut book = umya_spreadsheet::new_file();
book.remove_colmun("Sheet1", "B", 3);

Remove colmuns.

Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • column_index - Specify point of remove. ex) 2
  • num_columns - Specify number to remove. ex) 3
Examples
let mut book = umya_spreadsheet::new_file();
book.remove_colmun_by_index("Sheet1", 2, 3);

Gets the cell value by specifying an address.

Arguments
  • address - address. ex) “Sheet1!A1:C5”
Return value

*Vec<&CellValue> - CellValue List.

Examples
let mut book = umya_spreadsheet::new_file();
let mut cell_value_List = book.get_cell_value_by_address("Sheet1!A1:C5");

Get Theme.

Get Theme in mutable.

Set Theme.

Arguments
  • value - Theme

Get Properties.

Get Properties in mutable.

Set Properties.

Arguments
  • value - Properties

Get Security.

Get Security in mutable.

Set Security.

Arguments
  • value - Security

Get Macros Code.

Return value
  • &Option<Vec<u8>> - Macros Code Raw Data.

Set Macros Code.

Arguments
  • value - Macros Code Raw Data.

Remove Macros Code

Has Macros Code

Get Work Sheet List.

Get Work Sheet List. No check serialized.

Get Work Sheet List in mutable.

Get Work Sheet Count.

Return value
  • usize - Work Sheet Count.

serialize by all worksheet.

serialize a worksheet.

Get Work Sheet.

Arguments
  • index - sheet index
Return value
  • Result<&Worksheet, &'static str> - OK:work sheet. Err:Error.

Get Work Sheet in mutable.

Arguments
  • index - sheet index
Return value
  • &mut Worksheet - Work sheet.

Get Work Sheet.

Arguments
  • sheet_name - sheet name
Return value
  • Result<&Worksheet, &'static str> - OK:work sheet. Err:Error.

Get Work Sheet in mutable.

Arguments
  • sheet_name - sheet name
Return value
  • Result<&mut Worksheet, &'static str> - OK:work sheet. Err:Error.

Add Work Sheet.

Arguments
  • value - Work Sheet
Return value
  • Result<&mut Worksheet, &'static str> - OK:added work sheet. Err:Error.

Add New Work Sheet.

Arguments
  • sheet_title - sheet title
Return value
  • Result<&mut Worksheet, &'static str> - OK:added work sheet. Err:Error.

Set Sheet Title.

Arguments
  • index - target sheet index
  • sheet_title - sheet title
Return value
  • Result<(), &'static str> - OK:Success Err:Error.

Get Workbook View.

Get Workbook View in mutable.

Set Workbook View.

Arguments
  • value - WorkbookView

Outputs all images contained in the spreadsheet.

Return value
  • Vec<&Image> - Image Object List.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.