Struct umya_spreadsheet::structs::worksheet::Worksheet [−][src]
Implementations
impl Worksheet
[src]
pub fn get_value<S: Into<String>>(&self, coordinate: S) -> String
[src]
Get value.
Arguments
coordinate
- Specify the coordinates. ex) "A1"
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");
pub fn get_value_by_column_and_row(&self, col: usize, row: usize) -> String
[src]
Get value by specifying the column number and row number.
Arguments
col
- Specify the column number. (first column number is 1)row
- Specify the row number. (first row number is 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_by_column_and_row(1, 1);
pub fn get_formatted_value<S: Into<String>>(&self, coordinate: S) -> String
[src]
Get formatted value.
Arguments
coordinate
- Specify the coordinates. ex) "A1"
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");
pub fn get_formatted_value_by_column_and_row(
&self,
col: usize,
row: usize
) -> String
[src]
&self,
col: usize,
row: usize
) -> String
Get formatted value by specifying the column number and row number.
Arguments
col
- Specify the column number. (first column number is 1)row
- Specify the row number. (first row number is 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_by_column_and_row(1, 1);
pub fn get_cell_collection(&self) -> &Vec<Cell>
[src]
pub fn get_cell_collection_mut(&mut self) -> &mut Vec<Cell>
[src]
pub fn get_cell_collection_to_hashmap(&self) -> HashMap<String, &Cell>
[src]
pub fn get_collection_by_row(&self, row_num: &usize) -> BTreeMap<usize, &Cell>
[src]
pub fn get_cell<S: Into<String>>(&self, coordinate: S) -> Option<&Cell>
[src]
Get cell.
Arguments
coordinate
- Specify the coordinates. ex) "A1"
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");
pub fn get_cell_by_column_and_row(
&self,
col: usize,
row: usize
) -> Option<&Cell>
[src]
&self,
col: usize,
row: usize
) -> Option<&Cell>
Gets the cell by specifying the column number and row number.
Arguments
col
- Specify the column number. (first column number is 1)row
- Specify the row number. (first row number is 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_by_column_and_row(1, 1); // get cell from A1.
pub fn get_cell_mut<S: Into<String>>(&mut self, coordinate: S) -> &mut Cell
[src]
Get cell with mutable.
Arguments
coordinate
- Specify the coordinates. ex) "A1"
Return value
&mut Cell
- Cell with mutable.
Examples
let mut book = umya_spreadsheet::new_file(); let mut worksheet = book.get_sheet_mut(0); let cell = worksheet.get_cell_mut("A1");
pub fn get_cell_by_column_and_row_mut(
&mut self,
col: usize,
row: usize
) -> &mut Cell
[src]
&mut self,
col: usize,
row: usize
) -> &mut Cell
Gets the cell with mutable by specifying the column number and row number.
Arguments
col
- Specify the column number. (first column number is 1)row
- Specify the row number. (first row number is 1)
Return value
*&mut Cell
- Cell with mutable.
Examples
let mut book = umya_spreadsheet::new_file(); let mut worksheet = book.get_sheet_mut(0); let cell = worksheet.get_cell_by_column_and_row_mut(1, 1); // get cell from A1.
pub fn get_style_collection(&self) -> &Vec<Style>
[src]
pub fn get_style_collection_mut(&mut self) -> &mut Vec<Style>
[src]
pub fn get_style_collection_to_hashmap(&self) -> HashMap<String, &Style>
[src]
pub fn get_style_collection_by_row(
&self,
row_num: &usize
) -> BTreeMap<usize, &Style>
[src]
&self,
row_num: &usize
) -> BTreeMap<usize, &Style>
pub fn get_style<S: Into<String>>(&self, coordinate: S) -> Option<&Style>
[src]
Get style.
Arguments
coordinate
- Specify the coordinates. ex) "A1"
Return value
Option
- Style in the Some.
Examples
let book = umya_spreadsheet::new_file(); let worksheet = book.get_sheet(0).unwrap(); let style = worksheet.get_style("A1");
pub fn get_style_by_column_and_row(
&self,
col: usize,
row: usize
) -> Option<&Style>
[src]
&self,
col: usize,
row: usize
) -> Option<&Style>
Gets the style by specifying the column number and row number.
Arguments
col
- Specify the column number. (first column number is 1)row
- Specify the row number. (first row number is 1)
Return value
Option
- Style in the Some.
Examples
let book = umya_spreadsheet::new_file(); let worksheet = book.get_sheet(0).unwrap(); let style = worksheet.get_style_by_column_and_row(1, 1); // get cell from A1.
pub fn get_style_mut<S: Into<String>>(&mut self, coordinate: S) -> &mut Style
[src]
Get style with mutable.
Arguments
coordinate
- Specify the coordinates. ex) "A1"
Return value
&mut Style
- Style with mutable.
Examples
let mut book = umya_spreadsheet::new_file(); let mut worksheet = book.get_sheet_mut(0); let style = worksheet.get_style_mut("A1");
pub fn get_style_by_column_and_row_mut(
&mut self,
col: usize,
row: usize
) -> &mut Style
[src]
&mut self,
col: usize,
row: usize
) -> &mut Style
Gets the style with mutable by specifying the column number and row number.
Arguments
col
- Specify the column number. (first column number is 1)row
- Specify the row number. (first row number is 1)
Return value
*&mut Style
- Style with mutable.
Examples
let mut book = umya_spreadsheet::new_file(); let mut worksheet = book.get_sheet_mut(0); let style = worksheet.get_style_by_column_and_row_mut(1, 1); // get style from A1.
pub fn get_comments(&self) -> &Vec<Comment>
[src]
pub fn get_comments_to_hashmap(&self) -> HashMap<String, &Comment>
[src]
pub fn get_conditional_styles_collection(&self) -> &Vec<ConditionalSet>
[src]
pub fn get_merge_cells(&self) -> &Vec<Range>
[src]
pub fn get_merge_cells_mut(&mut self) -> &mut Vec<Range>
[src]
pub fn get_auto_filter(&self) -> &Option<AutoFilter>
[src]
pub fn get_auto_filter_mut(&mut self) -> &mut Option<AutoFilter>
[src]
pub fn set_auto_filter<S: Into<String>>(&mut self, value: S)
[src]
pub fn remove_auto_filter(&mut self)
[src]
pub fn get_column_dimensions(&self) -> &Vec<ColumnDimension>
[src]
pub fn get_row_dimensions(&self) -> &Vec<RowDimension>
[src]
pub fn get_row_dimensions_to_b_tree_map(&self) -> BTreeMap<usize, &RowDimension>
[src]
pub fn get_row_dimension(&self, row: &usize) -> Option<&RowDimension>
[src]
pub fn get_row_dimension_mut(
&mut self,
row: &usize
) -> Option<&mut RowDimension>
[src]
&mut self,
row: &usize
) -> Option<&mut RowDimension>
pub fn get_chart_collection(&self) -> &Vec<Chart>
[src]
pub fn get_chart_collection_mut(&mut self) -> &mut Vec<Chart>
[src]
pub fn new_chart(&mut self) -> &mut Chart
[src]
pub fn add_chart(&mut self, chart: Chart)
[src]
pub fn get_chart_count(&self) -> usize
[src]
pub fn get_chart_by_index(&self, index: usize) -> &Chart
[src]
pub fn get_chart_names(&self, index: usize) -> Vec<String>
[src]
pub fn get_shape_collection(&self) -> &Vec<Shape>
[src]
pub fn get_shape_collection_mut(&mut self) -> &mut Vec<Shape>
[src]
pub fn set_shape_collection(&mut self, value: Vec<Shape>)
[src]
pub fn add_shape(&mut self, value: Shape)
[src]
pub fn get_connection_shape_collection(&self) -> &Vec<ConnectionShape>
[src]
pub fn get_connection_shape_collection_mut(
&mut self
) -> &mut Vec<ConnectionShape>
[src]
&mut self
) -> &mut Vec<ConnectionShape>
pub fn set_connection_shape_collection(&mut self, value: Vec<ConnectionShape>)
[src]
pub fn add_connection_shape(&mut self, value: ConnectionShape)
[src]
pub fn get_code_name(&self) -> &Option<String>
[src]
pub fn get_header_footer(&self) -> &HeaderFooter
[src]
pub fn get_active_cell(&self) -> &str
[src]
pub fn get_sheet_id(&self) -> &String
[src]
pub fn has_drawing_object(&self) -> bool
[src]
pub fn has_code_name(&self) -> bool
[src]
pub fn get_tab_color(&self) -> &Option<Color>
[src]
pub fn calculate_worksheet_dimension(&self) -> String
[src]
pub fn get_title(&self) -> &str
[src]
pub fn get_sheet_state(&self) -> &String
[src]
pub fn get_page_setup(&self) -> &PageSetup
[src]
pub fn get_page_margins(&self) -> &PageMargins
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Worksheet
[src]
impl Send for Worksheet
[src]
impl Sync for Worksheet
[src]
impl Unpin for Worksheet
[src]
impl UnwindSafe for Worksheet
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,