pub struct Alignment {
pub horizontal: Option<HAlign>,
pub vertical: Option<VAlign>,
pub wrap: bool,
pub rotation: i16,
pub indent: u8,
pub shrink_to_fit: bool,
}Expand description
Cell text alignment.
Fields§
§horizontal: Option<HAlign>Horizontal alignment.
vertical: Option<VAlign>Vertical alignment.
wrap: boolWrap long text within the cell (essential for long Korean 공고명).
rotation: i16Text rotation in degrees (-90..=90).
indent: u8Left indent in character units (0 = none).
shrink_to_fit: boolShrink text to fit within the cell width.
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub fn with_horizontal(self, horizontal: HAlign) -> Self
pub fn with_horizontal(self, horizontal: HAlign) -> Self
Set horizontal alignment.
Sourcepub fn with_vertical(self, vertical: VAlign) -> Self
pub fn with_vertical(self, vertical: VAlign) -> Self
Set vertical alignment.
Sourcepub fn with_indent(self, level: u8) -> Self
pub fn with_indent(self, level: u8) -> Self
Set the left indent in character units.
Sourcepub fn with_rotation(self, degrees: i16) -> Self
pub fn with_rotation(self, degrees: i16) -> Self
Set text rotation in degrees (-90..=90).
Sourcepub fn with_shrink_to_fit(self) -> Self
pub fn with_shrink_to_fit(self) -> Self
Shrink text to fit within the cell width.
Trait Implementations§
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.