pub struct Style {
pub font: Option<Font>,
pub fill: Option<Fill>,
pub borders: Option<Borders>,
pub alignment: Option<Alignment>,
pub number_format: Option<NumberFormat>,
pub protection: Option<Protection>,
pub style_id: Option<u32>,
}Expand description
Complete cell style
Fields§
§font: Option<Font>Font properties
fill: Option<Fill>Fill properties
borders: Option<Borders>Border properties
alignment: Option<Alignment>Alignment properties
number_format: Option<NumberFormat>Number format
protection: Option<Protection>Protection properties
style_id: Option<u32>Style ID (for internal use)
Implementations§
Source§impl Style
impl Style
Sourcepub fn with_borders(self, borders: Borders) -> Self
pub fn with_borders(self, borders: Borders) -> Self
Set borders
Sourcepub fn with_alignment(self, alignment: Alignment) -> Self
pub fn with_alignment(self, alignment: Alignment) -> Self
Set alignment
Sourcepub fn with_number_format(self, number_format: NumberFormat) -> Self
pub fn with_number_format(self, number_format: NumberFormat) -> Self
Set number format
Sourcepub fn with_protection(self, protection: Protection) -> Self
pub fn with_protection(self, protection: Protection) -> Self
Set protection
Sourcepub fn with_style_id(self, style_id: u32) -> Self
pub fn with_style_id(self, style_id: u32) -> Self
Set style ID
Sourcepub fn get_borders(&self) -> Option<&Borders>
pub fn get_borders(&self) -> Option<&Borders>
Get borders
Sourcepub fn get_alignment(&self) -> Option<&Alignment>
pub fn get_alignment(&self) -> Option<&Alignment>
Get alignment
Sourcepub fn get_number_format(&self) -> Option<&NumberFormat>
pub fn get_number_format(&self) -> Option<&NumberFormat>
Get number format
Sourcepub fn get_protection(&self) -> Option<&Protection>
pub fn get_protection(&self) -> Option<&Protection>
Get protection
Sourcepub fn has_visible_properties(&self) -> bool
pub fn has_visible_properties(&self) -> bool
Check if style has any visible properties
Trait Implementations§
impl CellType for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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