Struct umya_spreadsheet::structs::Column
source · 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 RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.