pub struct CT_TextCharacterProperties {Show 17 fields
pub font_size: Option<i32>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub all_caps: Option<bool>,
pub small_caps: Option<bool>,
pub highlight: Option<ColorChoice>,
pub underline: Option<TextUnderline>,
pub strike: Option<TextStrike>,
pub spacing: Option<TextPointValue>,
pub baseline: Option<String>,
pub fill: Option<Fill>,
pub latin: Option<TextFont>,
pub east_asian: Option<TextFont>,
pub complex_script: Option<TextFont>,
pub symbol: Option<TextFont>,
pub hyperlink_click: Option<TextHyperlink>,
pub hyperlink_mouse_over: Option<TextHyperlink>,
/* private fields */
}Expand description
DrawingML character properties shared by runs, breaks, fields, and defaults.
Fields§
§font_size: Option<i32>§bold: Option<bool>§italic: Option<bool>§all_caps: Option<bool>§small_caps: Option<bool>§highlight: Option<ColorChoice>§underline: Option<TextUnderline>§strike: Option<TextStrike>§spacing: Option<TextPointValue>§baseline: Option<String>§fill: Option<Fill>§latin: Option<TextFont>§east_asian: Option<TextFont>§complex_script: Option<TextFont>§symbol: Option<TextFont>§hyperlink_click: Option<TextHyperlink>§hyperlink_mouse_over: Option<TextHyperlink>Implementations§
Source§impl CT_TextCharacterProperties
impl CT_TextCharacterProperties
Sourcepub fn with_inherited_defaults(&self, defaults: &Self) -> Result<Self>
pub fn with_inherited_defaults(&self, defaults: &Self) -> Result<Self>
Returns local character properties with absent groups inherited from defaults.
Sourcepub fn language(&self) -> Option<&str>
pub fn language(&self) -> Option<&str>
Reads the unqualified DrawingML language without promoting or rewriting source.
Sourcepub fn set_language(&mut self, language: Option<&str>)
pub fn set_language(&mut self, language: Option<&str>)
Replaces or removes the lang language tag, keeping its position
among the preserved attributes.
Sourcepub fn from_xml(xml: &[u8]) -> Result<Self>
pub fn from_xml(xml: &[u8]) -> Result<Self>
Parses one complete character-property element with any prefix.
Sourcepub fn write_xml<W: Write>(
&self,
writer: &mut Writer<W>,
tag: &str,
) -> Result<()>
pub fn write_xml<W: Write>( &self, writer: &mut Writer<W>, tag: &str, ) -> Result<()>
Writes character properties with a caller-selected fixed a: tag.
Sourcepub fn set_highlight(&mut self, value: Option<ColorChoice>) -> Result<()>
pub fn set_highlight(&mut self, value: Option<ColorChoice>) -> Result<()>
Changes only the owned highlight colour after checking opaque-source preservation.
Sourcepub fn set_all_caps(&mut self, value: Option<bool>)
pub fn set_all_caps(&mut self, value: Option<bool>)
Updates direct all-caps without leaving a conflicting small-caps mode.
Sourcepub fn set_small_caps(&mut self, value: Option<bool>)
pub fn set_small_caps(&mut self, value: Option<bool>)
Updates direct small-caps without leaving a conflicting all-caps mode.
pub fn raw_children(&self) -> &OrderedRawChildren
Trait Implementations§
Source§impl Clone for CT_TextCharacterProperties
impl Clone for CT_TextCharacterProperties
Source§impl Debug for CT_TextCharacterProperties
impl Debug for CT_TextCharacterProperties
Source§impl Default for CT_TextCharacterProperties
impl Default for CT_TextCharacterProperties
impl Eq for CT_TextCharacterProperties
Auto Trait Implementations§
impl Freeze for CT_TextCharacterProperties
impl RefUnwindSafe for CT_TextCharacterProperties
impl Send for CT_TextCharacterProperties
impl Sync for CT_TextCharacterProperties
impl Unpin for CT_TextCharacterProperties
impl UnsafeUnpin for CT_TextCharacterProperties
impl UnwindSafe for CT_TextCharacterProperties
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