pub enum MsoAutoSize {
None,
ShapeToFitText,
TextToFitShape,
}Expand description
文本框自动调整策略(MSO_AUTO_SIZE)。
对标 python-pptx 中 pptx.enum.text.MSO_AUTO_SIZE。
序列化时分别落到 <a:bodyPr> 内的 <a:normAutofit> / <a:spAutoFit> 子元素。
Variants§
None
不自动调整(不写 autofit 子元素)。
ShapeToFitText
文字溢出时调整形状(spAutoFit)。
TextToFitShape
文字溢出时缩小字号(normAutofit)。
Implementations§
Trait Implementations§
Source§impl Clone for MsoAutoSize
impl Clone for MsoAutoSize
Source§fn clone(&self) -> MsoAutoSize
fn clone(&self) -> MsoAutoSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MsoAutoSize
Source§impl Debug for MsoAutoSize
impl Debug for MsoAutoSize
Source§impl Default for MsoAutoSize
impl Default for MsoAutoSize
Source§fn default() -> MsoAutoSize
fn default() -> MsoAutoSize
Returns the “default value” for a type. Read more
impl Eq for MsoAutoSize
Source§impl PartialEq for MsoAutoSize
impl PartialEq for MsoAutoSize
Source§fn eq(&self, other: &MsoAutoSize) -> bool
fn eq(&self, other: &MsoAutoSize) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MsoAutoSize
Auto Trait Implementations§
impl Freeze for MsoAutoSize
impl RefUnwindSafe for MsoAutoSize
impl Send for MsoAutoSize
impl Sync for MsoAutoSize
impl Unpin for MsoAutoSize
impl UnsafeUnpin for MsoAutoSize
impl UnwindSafe for MsoAutoSize
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.