pub struct Column { /* private fields */ }
Expand description
§Examples
§set auto width
use umya_spreadsheet::*;
let mut book = new_file();
let mut worksheet = book.get_sheet_by_name_mut("Sheet1").unwrap();
worksheet.get_column_dimension_mut("A").set_auto_width(true);
§set manual width
use umya_spreadsheet::*;
let mut book = new_file();
let mut worksheet = book.get_sheet_by_name_mut("Sheet1").unwrap();
worksheet.get_column_dimension_mut("A").set_width(60f64);
Implementations§
Source§impl Column
impl Column
pub fn get_col_num(&self) -> &u32
pub fn set_col_num(&mut self, value: u32) -> &mut Self
pub fn get_width(&self) -> &f64
pub fn set_width(&mut self, value: f64) -> &mut Self
pub fn get_best_fit(&self) -> &bool
pub fn set_best_fit(&mut self, value: bool) -> &mut Self
pub fn get_style(&self) -> &Style
pub fn get_style_mut(&mut self) -> &mut Style
pub fn set_style(&mut self, value: Style) -> &mut Self
pub fn get_auto_width(&self) -> &bool
pub fn set_auto_width(&mut self, value: bool) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more