pub struct Worksheet { /* private fields */ }Expand description
A Worksheet Object.
Implementations§
Source§impl Worksheet
impl Worksheet
Sourcepub fn get_value<T>(&self, coordinate: T) -> Stringwhere
T: Into<CellCoordinates>,
pub fn get_value<T>(&self, coordinate: T) -> Stringwhere
T: Into<CellCoordinates>,
Get value.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
String- Value of the specified cell.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let value = worksheet.get_value("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let value = worksheet.get_value((1, 1));Sourcepub fn get_value_number<T>(&self, coordinate: T) -> Option<f64>where
T: Into<CellCoordinates>,
pub fn get_value_number<T>(&self, coordinate: T) -> Option<f64>where
T: Into<CellCoordinates>,
Get value number.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)
§Return value
Option<f64>- Value of the specified cell.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let value = worksheet.get_value_number("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let value = worksheet.get_value_number((1, 1));Sourcepub fn get_formatted_value<T>(&self, coordinate: T) -> Stringwhere
T: Into<CellCoordinates>,
pub fn get_formatted_value<T>(&self, coordinate: T) -> Stringwhere
T: Into<CellCoordinates>,
Get formatted value.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
String- Formatted value of the specified cell.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let value = worksheet.get_formatted_value("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let value = worksheet.get_formatted_value((1, 1));Sourcepub fn get_cell_collection(&self) -> Vec<&Cell>
pub fn get_cell_collection(&self) -> Vec<&Cell>
Get Cell List.
pub fn get_cell_collection_sorted(&self) -> Vec<&Cell>
Sourcepub fn get_cell_collection_mut(&mut self) -> Vec<&mut Cell>
pub fn get_cell_collection_mut(&mut self) -> Vec<&mut Cell>
Get Cell List in mutable.
pub fn get_collection_to_hashmap(&self) -> &HashMap<(u32, u32), Box<Cell>>
pub fn get_collection_to_hashmap_mut( &mut self, ) -> &mut HashMap<(u32, u32), Box<Cell>>
Sourcepub fn get_cell<T>(&self, coordinate: T) -> Option<&Cell>where
T: Into<CellCoordinates>,
pub fn get_cell<T>(&self, coordinate: T) -> Option<&Cell>where
T: Into<CellCoordinates>,
Get cell.
§Note
Cells with unset Value and Style will return None.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
Option- Cell in the Some.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let cell = worksheet.get_cell("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell = worksheet.get_cell((1, 1));Sourcepub fn get_cell_mut<T>(&mut self, coordinate: T) -> &mut Cellwhere
T: Into<CellCoordinates>,
pub fn get_cell_mut<T>(&mut self, coordinate: T) -> &mut Cellwhere
T: Into<CellCoordinates>,
Get cell with mutable.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
&mut Cell- Cell with mutable.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let cell = worksheet.get_cell_mut("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell = worksheet.get_cell_mut((1, 1));pub fn get_collection_by_column(&self, column_num: &u32) -> Vec<&Cell>
pub fn get_collection_by_row(&self, row_num: &u32) -> Vec<&Cell>
pub fn get_collection_by_column_to_hashmap( &self, column_num: &u32, ) -> HashMap<u32, &Cell>
pub fn get_collection_by_row_to_hashmap( &self, row_num: &u32, ) -> HashMap<u32, &Cell>
Sourcepub fn remove_cell<T>(&mut self, coordinate: T) -> boolwhere
T: Into<CellCoordinates>,
pub fn remove_cell<T>(&mut self, coordinate: T) -> boolwhere
T: Into<CellCoordinates>,
Sourcepub fn get_cell_value<T>(&self, coordinate: T) -> &CellValuewhere
T: Into<CellCoordinates>,
pub fn get_cell_value<T>(&self, coordinate: T) -> &CellValuewhere
T: Into<CellCoordinates>,
Get cell value.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
&CellValue- CellValue.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let cell_value = worksheet.get_cell_value("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell_value = worksheet.get_cell_value((1, 1));Sourcepub fn get_cell_value_mut<T>(&mut self, coordinate: T) -> &mut CellValuewhere
T: Into<CellCoordinates>,
pub fn get_cell_value_mut<T>(&mut self, coordinate: T) -> &mut CellValuewhere
T: Into<CellCoordinates>,
Get cell value with mutable.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
&mut CellValue- CellValue with mutable.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let cell_value = worksheet.get_cell_value_mut("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell_value = worksheet.get_cell_value_mut((1, 1));Sourcepub fn get_cell_value_by_range(&self, range: &str) -> Vec<&CellValue>
pub fn get_cell_value_by_range(&self, range: &str) -> Vec<&CellValue>
Gets the cell value by specifying an range.
§Arguments
range- range. ex) “A1:C5”
§Return value
*Vec<&CellValue> - CellValue List.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let mut cell_value_List = worksheet.get_cell_value_by_range("A1:C5");Sourcepub fn get_style<T>(&self, coordinate: T) -> &Stylewhere
T: Into<CellCoordinates>,
pub fn get_style<T>(&self, coordinate: T) -> &Stylewhere
T: Into<CellCoordinates>,
Get style.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
&Style- Style.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let style = worksheet.get_style("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let style = worksheet.get_style((1, 1));Sourcepub fn get_style_mut<T>(&mut self, coordinate: T) -> &mut Stylewhere
T: Into<CellCoordinates>,
pub fn get_style_mut<T>(&mut self, coordinate: T) -> &mut Stylewhere
T: Into<CellCoordinates>,
Get style with mutable.
§Arguments
coordinate- Specify the coordinates. ex)"A1"or(1, 1)or(&1, &1)
§Return value
&mut Style- Style with mutable.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let style = worksheet.get_style_mut("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let style = worksheet.get_style_mut((1, 1));pub fn set_style<T>(&mut self, coordinate: T, style: Style) -> &mut Selfwhere
T: Into<CellCoordinates>,
Sourcepub fn set_style_by_range(&mut self, range: &str, style: Style) -> &mut Self
pub fn set_style_by_range(&mut self, range: &str, style: Style) -> &mut Self
Set style by range.
§Arguments
range- Specify the range. ex) “A1:B2”style- Style
§Return value
&mut Self- Self.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let mut style = umya_spreadsheet::Style::default();
style.get_borders_mut().get_bottom_mut().set_border_style(umya_spreadsheet::Border::BORDER_MEDIUM);
worksheet.set_style_by_range("A1:A3", style);Sourcepub fn map_merged_cell<T>(&self, coordinate: T) -> (u32, u32)where
T: Into<CellCoordinates>,
pub fn map_merged_cell<T>(&self, coordinate: T) -> (u32, u32)where
T: Into<CellCoordinates>,
Get the upper-left corner cell of a cell inside a merged cell range (if any).
Sourcepub fn get_comments(&self) -> &[Comment]
pub fn get_comments(&self) -> &[Comment]
Get Comments
Sourcepub fn get_comments_mut(&mut self) -> &mut ThinVec<Comment>
pub fn get_comments_mut(&mut self) -> &mut ThinVec<Comment>
Get Comments in mutable.
Sourcepub fn get_comments_to_hashmap(&self) -> HashMap<String, &Comment>
pub fn get_comments_to_hashmap(&self) -> HashMap<String, &Comment>
Get Comments convert to hashmap.
Sourcepub fn set_comments(&mut self, value: impl Into<ThinVec<Comment>>)
pub fn set_comments(&mut self, value: impl Into<ThinVec<Comment>>)
Sourcepub fn add_comments(&mut self, value: Comment)
pub fn add_comments(&mut self, value: Comment)
Sourcepub fn has_comments(&self) -> bool
pub fn has_comments(&self) -> bool
Has Comments.
Sourcepub fn get_threaded_comments(&self) -> &[ThreadedComment]
pub fn get_threaded_comments(&self) -> &[ThreadedComment]
Get ThreadedComments
Sourcepub fn get_threaded_comments_mut(&mut self) -> &mut ThinVec<ThreadedComment>
pub fn get_threaded_comments_mut(&mut self) -> &mut ThinVec<ThreadedComment>
Get ThreadedComments in mutable.
Sourcepub fn get_threaded_comments_to_hashmap(
&self,
) -> HashMap<String, &ThreadedComment>
pub fn get_threaded_comments_to_hashmap( &self, ) -> HashMap<String, &ThreadedComment>
Get ThreadedComments convert to hashmap.
Sourcepub fn set_threaded_comments(
&mut self,
value: impl Into<ThinVec<ThreadedComment>>,
)
pub fn set_threaded_comments( &mut self, value: impl Into<ThinVec<ThreadedComment>>, )
Sourcepub fn add_threaded_comments(&mut self, value: ThreadedComment)
pub fn add_threaded_comments(&mut self, value: ThreadedComment)
Sourcepub fn has_threaded_comments(&self) -> bool
pub fn has_threaded_comments(&self) -> bool
Has ThreadedComments.
Sourcepub fn get_conditional_formatting_collection(&self) -> &[ConditionalFormatting]
pub fn get_conditional_formatting_collection(&self) -> &[ConditionalFormatting]
Get ConditionalFormatting list.
Sourcepub fn set_conditional_formatting_collection(
&mut self,
value: impl Into<ThinVec<ConditionalFormatting>>,
)
pub fn set_conditional_formatting_collection( &mut self, value: impl Into<ThinVec<ConditionalFormatting>>, )
Sourcepub fn add_conditional_formatting_collection(
&mut self,
value: ConditionalFormatting,
)
pub fn add_conditional_formatting_collection( &mut self, value: ConditionalFormatting, )
pub fn get_merge_cells(&self) -> &[Range]
pub fn get_merge_cells_mut(&mut self) -> &mut ThinVec<Range>
Sourcepub fn add_merge_cells<S: Into<String>>(&mut self, range: S) -> &mut Self
pub fn add_merge_cells<S: Into<String>>(&mut self, range: S) -> &mut Self
pub fn get_auto_filter(&self) -> Option<&AutoFilter>
pub fn get_auto_filter_mut(&mut self) -> Option<&mut AutoFilter>
Sourcepub fn set_auto_filter<S: Into<String>>(&mut self, range: S)
pub fn set_auto_filter<S: Into<String>>(&mut self, range: S)
pub fn remove_auto_filter(&mut self)
Sourcepub fn get_column_dimensions(&self) -> &[Column]
pub fn get_column_dimensions(&self) -> &[Column]
Get Column Dimension List.
Sourcepub fn get_column_dimensions_mut(&mut self) -> &mut ThinVec<Column>
pub fn get_column_dimensions_mut(&mut self) -> &mut ThinVec<Column>
Get Column Dimension List in mutable.
Sourcepub fn calculation_auto_width(&mut self) -> &mut Self
pub fn calculation_auto_width(&mut self) -> &mut Self
Calculation Auto Width.
Sourcepub fn get_column_dimension(&self, column: &str) -> Option<&Column>
pub fn get_column_dimension(&self, column: &str) -> Option<&Column>
Sourcepub fn get_column_dimension_mut(&mut self, column: &str) -> &mut Column
pub fn get_column_dimension_mut(&mut self, column: &str) -> &mut Column
Sourcepub fn get_column_dimension_by_number(&self, col: &u32) -> Option<&Column>
pub fn get_column_dimension_by_number(&self, col: &u32) -> Option<&Column>
Sourcepub fn get_column_dimension_by_number_mut(&mut self, col: &u32) -> &mut Column
pub fn get_column_dimension_by_number_mut(&mut self, col: &u32) -> &mut Column
pub fn has_sheet_data(&self) -> bool
Sourcepub fn get_row_dimensions(&self) -> Vec<&Row>
pub fn get_row_dimensions(&self) -> Vec<&Row>
Get Row Dimension List.
Sourcepub fn get_row_dimensions_mut(&mut self) -> Vec<&mut Row>
pub fn get_row_dimensions_mut(&mut self) -> Vec<&mut Row>
Get Row Dimension List in mutable.
Sourcepub fn get_row_dimensions_to_hashmap(&self) -> &HashMap<u32, Box<Row>>
pub fn get_row_dimensions_to_hashmap(&self) -> &HashMap<u32, Box<Row>>
Get Row Dimension convert Hashmap.
pub fn get_row_dimensions_to_hashmap_mut( &mut self, ) -> &mut HashMap<u32, Box<Row>>
Sourcepub fn get_row_dimension(&self, row: &u32) -> Option<&Row>
pub fn get_row_dimension(&self, row: &u32) -> Option<&Row>
Get Row Dimension.
Sourcepub fn get_row_dimension_mut(&mut self, row: &u32) -> &mut Row
pub fn get_row_dimension_mut(&mut self, row: &u32) -> &mut Row
Get Row Dimension in mutable.
Sourcepub fn get_worksheet_drawing(&self) -> &WorksheetDrawing
pub fn get_worksheet_drawing(&self) -> &WorksheetDrawing
Get WorksheetDrawing.
Sourcepub fn get_worksheet_drawing_mut(&mut self) -> &mut WorksheetDrawing
pub fn get_worksheet_drawing_mut(&mut self) -> &mut WorksheetDrawing
Get WorksheetDrawing in mutable.
Sourcepub fn set_worksheet_drawing(&mut self, value: WorksheetDrawing)
pub fn set_worksheet_drawing(&mut self, value: WorksheetDrawing)
Sourcepub fn has_drawing_object(&self) -> bool
pub fn has_drawing_object(&self) -> bool
Has WorksheetDrawing.
Sourcepub fn insert_new_row(&mut self, row_index: &u32, num_rows: &u32)
pub fn insert_new_row(&mut self, row_index: &u32, num_rows: &u32)
Sourcepub fn insert_new_row_from_other_sheet(
&mut self,
sheet_name: &str,
row_index: &u32,
num_rows: &u32,
)
pub fn insert_new_row_from_other_sheet( &mut self, sheet_name: &str, row_index: &u32, num_rows: &u32, )
Adjust for references to other sheets.
Sourcepub fn insert_new_column(&mut self, column: &str, num_columns: &u32)
pub fn insert_new_column(&mut self, column: &str, num_columns: &u32)
Sourcepub fn insert_new_column_from_other_sheet(
&mut self,
sheet_name: &str,
column: &str,
num_columns: &u32,
)
pub fn insert_new_column_from_other_sheet( &mut self, sheet_name: &str, column: &str, num_columns: &u32, )
Adjust for references to other sheets.
Sourcepub fn insert_new_column_by_index(
&mut self,
column_index: &u32,
num_columns: &u32,
)
pub fn insert_new_column_by_index( &mut self, column_index: &u32, num_columns: &u32, )
Sourcepub fn insert_new_column_by_index_from_other_sheet(
&mut self,
sheet_name: &str,
column_index: &u32,
num_columns: &u32,
)
pub fn insert_new_column_by_index_from_other_sheet( &mut self, sheet_name: &str, column_index: &u32, num_columns: &u32, )
Adjust for references to other sheets.
Sourcepub fn remove_row(&mut self, row_index: &u32, num_rows: &u32)
pub fn remove_row(&mut self, row_index: &u32, num_rows: &u32)
Sourcepub fn remove_row_from_other_sheet(
&mut self,
sheet_name: &str,
row_index: &u32,
num_rows: &u32,
)
pub fn remove_row_from_other_sheet( &mut self, sheet_name: &str, row_index: &u32, num_rows: &u32, )
Adjust for references to other sheets.
Sourcepub fn remove_column(&mut self, column: &str, num_columns: &u32)
pub fn remove_column(&mut self, column: &str, num_columns: &u32)
Remove columns.
§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();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.remove_column("B", &3);Sourcepub fn remove_column_from_other_sheet(
&mut self,
sheet_name: &str,
column: &str,
num_columns: &u32,
)
pub fn remove_column_from_other_sheet( &mut self, sheet_name: &str, column: &str, num_columns: &u32, )
Adjust for references to other sheets.
Sourcepub fn remove_column_by_index(&mut self, column_index: &u32, num_columns: &u32)
pub fn remove_column_by_index(&mut self, column_index: &u32, num_columns: &u32)
Sourcepub fn remove_column_by_index_from_other_sheet(
&mut self,
sheet_name: &str,
column_index: &u32,
num_columns: &u32,
)
pub fn remove_column_by_index_from_other_sheet( &mut self, sheet_name: &str, column_index: &u32, num_columns: &u32, )
Adjust for references to other sheets.
Sourcepub fn get_code_name(&self) -> Option<&str>
pub fn get_code_name(&self) -> Option<&str>
Get Code Name.
Sourcepub fn set_code_name<S: Into<String>>(&mut self, value: S)
pub fn set_code_name<S: Into<String>>(&mut self, value: S)
Get Header Footer.
Get Header Footer in mutable.
Sourcepub fn get_active_cell(&self) -> &str
pub fn get_active_cell(&self) -> &str
Get Active Cell.
Sourcepub fn set_active_cell<S: Into<String>>(&mut self, cell: S)
pub fn set_active_cell<S: Into<String>>(&mut self, cell: S)
Sourcepub fn get_sheet_id(&self) -> &str
pub fn get_sheet_id(&self) -> &str
Get Sheet Id.
Sourcepub fn has_code_name(&self) -> bool
pub fn has_code_name(&self) -> bool
Has Code Name.
Sourcepub fn get_tab_color(&self) -> Option<&Color>
pub fn get_tab_color(&self) -> Option<&Color>
Get Tab Color.
Sourcepub fn get_tab_color_mut(&mut self) -> &mut Color
pub fn get_tab_color_mut(&mut self) -> &mut Color
Get Tab Color in mutable.
Sourcepub fn set_tab_color(&mut self, value: Color) -> &mut Self
pub fn set_tab_color(&mut self, value: Color) -> &mut Self
Sourcepub fn remove_tab_color(&mut self) -> &mut Self
pub fn remove_tab_color(&mut self) -> &mut Self
Remove Tab Color.
Sourcepub fn calculate_worksheet_dimension(&self) -> String
pub fn calculate_worksheet_dimension(&self) -> String
Calculate Worksheet Dimension.
Sourcepub fn get_highest_column_and_row(&self) -> (u32, u32)
pub fn get_highest_column_and_row(&self) -> (u32, u32)
§Return value
*(u32, u32) - (column, row)
pub fn get_highest_column(&self) -> u32
pub fn get_highest_row(&self) -> u32
pub fn get_state(&self) -> &SheetStateValues
pub fn set_state(&mut self, value: SheetStateValues) -> &mut Self
pub fn get_sheet_state(&self) -> &str
Sourcepub fn set_sheet_state(&mut self, value: String) -> &mut Self
pub fn set_sheet_state(&mut self, value: String) -> &mut Self
pub fn get_page_setup(&self) -> &PageSetup
pub fn get_page_setup_mut(&mut self) -> &mut PageSetup
Sourcepub fn set_page_setup(&mut self, value: PageSetup) -> &mut Self
pub fn set_page_setup(&mut self, value: PageSetup) -> &mut Self
pub fn get_page_margins(&self) -> &PageMargins
pub fn get_page_margins_mut(&mut self) -> &mut PageMargins
Sourcepub fn set_page_margins(&mut self, value: PageMargins) -> &mut Self
pub fn set_page_margins(&mut self, value: PageMargins) -> &mut Self
pub fn get_sheets_views(&self) -> &SheetViews
pub fn get_sheet_views_mut(&mut self) -> &mut SheetViews
Sourcepub fn set_sheets_views(&mut self, value: SheetViews) -> &mut Self
pub fn set_sheets_views(&mut self, value: SheetViews) -> &mut Self
pub fn get_ole_objects(&self) -> &OleObjects
pub fn get_ole_objects_mut(&mut self) -> &mut OleObjects
Sourcepub fn set_ole_objects(&mut self, value: OleObjects) -> &mut Self
pub fn set_ole_objects(&mut self, value: OleObjects) -> &mut Self
Sourcepub fn get_defined_names(&self) -> &[DefinedName]
pub fn get_defined_names(&self) -> &[DefinedName]
Get Defined Name (Vec).
Sourcepub fn get_defined_names_mut(&mut self) -> &mut ThinVec<DefinedName>
pub fn get_defined_names_mut(&mut self) -> &mut ThinVec<DefinedName>
Get Defined Name (Vec) in mutable.
Sourcepub fn set_defined_names(&mut self, value: impl Into<ThinVec<DefinedName>>)
pub fn set_defined_names(&mut self, value: impl Into<ThinVec<DefinedName>>)
Sourcepub fn add_defined_names(&mut self, value: DefinedName)
pub fn add_defined_names(&mut self, value: DefinedName)
Sourcepub fn add_defined_name<S: Into<String>>(
&mut self,
name: S,
address: S,
) -> Result<(), &str>
pub fn add_defined_name<S: Into<String>>( &mut self, name: S, address: S, ) -> Result<(), &str>
Sourcepub fn get_print_options(&self) -> &PrintOptions
pub fn get_print_options(&self) -> &PrintOptions
Get Print Options.
Sourcepub fn get_print_options_mut(&mut self) -> &mut PrintOptions
pub fn get_print_options_mut(&mut self) -> &mut PrintOptions
Get Print Options in mutable.
Sourcepub fn set_print_options(&mut self, value: PrintOptions) -> &mut Self
pub fn set_print_options(&mut self, value: PrintOptions) -> &mut Self
Sourcepub fn get_column_breaks(&self) -> &ColumnBreaks
pub fn get_column_breaks(&self) -> &ColumnBreaks
Get Column Breaks.
Sourcepub fn get_column_breaks_mut(&mut self) -> &mut ColumnBreaks
pub fn get_column_breaks_mut(&mut self) -> &mut ColumnBreaks
Get Column Breaks in mutable.
Sourcepub fn set_column_breaks(&mut self, value: ColumnBreaks) -> &mut Self
pub fn set_column_breaks(&mut self, value: ColumnBreaks) -> &mut Self
Sourcepub fn get_row_breaks(&self) -> &RowBreaks
pub fn get_row_breaks(&self) -> &RowBreaks
Get Row Breaks.
Sourcepub fn get_row_breaks_mut(&mut self) -> &mut RowBreaks
pub fn get_row_breaks_mut(&mut self) -> &mut RowBreaks
Get Row Breaks in mutable.
Sourcepub fn set_row_breaks(&mut self, value: RowBreaks) -> &mut Self
pub fn set_row_breaks(&mut self, value: RowBreaks) -> &mut Self
pub fn has_table(&self) -> bool
pub fn add_table(&mut self, table: Table)
pub fn get_tables(&self) -> &[Table]
pub fn get_tables_mut(&mut self) -> &mut ThinVec<Table>
pub fn get_data_validations(&self) -> Option<&DataValidations>
pub fn get_data_validations_mut(&mut self) -> Option<&mut DataValidations>
pub fn set_data_validations(&mut self, value: DataValidations) -> &mut Self
pub fn remove_data_validations(&mut self) -> &mut Self
pub fn get_data_validations_2010(&self) -> Option<&DataValidations2010>
pub fn get_data_validations_2010_mut( &mut self, ) -> Option<&mut DataValidations2010>
pub fn set_data_validations_2010( &mut self, value: DataValidations2010, ) -> &mut Self
pub fn remove_data_validations_2010(&mut self) -> &mut Self
pub fn get_sheet_format_properties(&self) -> &SheetFormatProperties
pub fn get_sheet_format_properties_mut(&mut self) -> &mut SheetFormatProperties
pub fn set_sheet_format_properties( &mut self, value: SheetFormatProperties, ) -> &mut Self
Sourcepub fn get_image_collection(&self) -> &[Image]
pub fn get_image_collection(&self) -> &[Image]
Sourcepub fn get_image_collection_mut(&mut self) -> &mut ThinVec<Image>
pub fn get_image_collection_mut(&mut self) -> &mut ThinVec<Image>
pub fn add_image(&mut self, value: Image) -> &mut Self
pub fn get_image<T>(&self, coordinate: T) -> Option<&Image>where
T: Into<CellCoordinates>,
pub fn get_image_mut<T>(&mut self, coordinate: T) -> Option<&mut Image>where
T: Into<CellCoordinates>,
pub fn get_image_by_column_and_row_mut( &mut self, col: &u32, row: &u32, ) -> Option<&mut Image>
pub fn get_images<T>(&self, coordinate: T) -> Vec<&Image>where
T: Into<CellCoordinates>,
pub fn get_images_mut<T>(&mut self, coordinate: T) -> Vec<&mut Image>where
T: Into<CellCoordinates>,
Sourcepub fn get_chart_collection(&self) -> &[Chart]
pub fn get_chart_collection(&self) -> &[Chart]
Sourcepub fn get_chart_collection_mut(&mut self) -> &mut ThinVec<Chart>
pub fn get_chart_collection_mut(&mut self) -> &mut ThinVec<Chart>
pub fn add_chart(&mut self, value: Chart) -> &mut Self
pub fn get_chart<T>(&self, coordinate: T) -> Option<&Chart>where
T: Into<CellCoordinates>,
pub fn get_chart_mut<T>(&mut self, coordinate: T) -> Option<&mut Chart>where
T: Into<CellCoordinates>,
pub fn get_charts<T>(&self, coordinate: T) -> Vec<&Chart>where
T: Into<CellCoordinates>,
pub fn get_charts_mut<T>(&mut self, coordinate: T) -> Vec<&mut Chart>where
T: Into<CellCoordinates>,
pub fn get_sheet_protection(&self) -> Option<&SheetProtection>
pub fn get_sheet_protection_mut(&mut self) -> &mut SheetProtection
pub fn set_sheet_protection(&mut self, value: SheetProtection) -> &mut Self
pub fn remove_sheet_protection(&mut self) -> &mut Self
Sourcepub fn move_range(&mut self, range: &str, row: &i32, column: &i32) -> &mut Self
pub fn move_range(&mut self, range: &str, row: &i32, column: &i32) -> &mut Self
Moving a section of the sheet
§Arguments
‘range’ - Specify like “A1:G8” ‘row’ - The number of rows to move by (negative numbers mean move ‘left’) ‘column’ - the number of columns to move by (negative numbers mean move ‘up’)
Sourcepub fn copy_range(&mut self, range: &str, row: &i32, column: &i32) -> &mut Self
pub fn copy_range(&mut self, range: &str, row: &i32, column: &i32) -> &mut Self
Copying a section of the sheet
§Arguments
‘range’ - Specify like “A1:G8” ‘row’ - The number of rows to move by (negative numbers mean move ‘left’) ‘column’ - the number of columns to move by (negative numbers mean move ‘up’)
Sourcepub fn cleanup(&mut self)
pub fn cleanup(&mut self)
Remove invisible garbage data. Doing so may reduce file size. Processing may take some time.
pub fn copy_cell_styling<T>(&mut self, source: T, target: T)where
T: Into<CellCoordinates>,
Sourcepub fn copy_row_styling(
&mut self,
source_row_no: &u32,
target_row_no: &u32,
start_col: Option<&u32>,
end_col: Option<&u32>,
)
pub fn copy_row_styling( &mut self, source_row_no: &u32, target_row_no: &u32, start_col: Option<&u32>, end_col: Option<&u32>, )
Copy the style of a given Row to the target.
§Arguments
source_row_no- Source Row Number.target_row_no- Target Row Number.start_col- Start Column Number. If None, minimum valueend_col- End Column Number. If None, maximum value
Sourcepub fn copy_col_styling(
&mut self,
source_col_no: &u32,
target_col_no: &u32,
start_row: Option<&u32>,
end_row: Option<&u32>,
)
pub fn copy_col_styling( &mut self, source_col_no: &u32, target_col_no: &u32, start_row: Option<&u32>, end_row: Option<&u32>, )
Copy the style of a given Column to the target.
§Arguments
source_col_no- Source Column Number.target_col_no- Target Column Number.start_row- Start Row Number. If None, minimum valueend_row- End Row Number. If None, maximum value