pub trait TextRunExt {
// Required methods
fn text(&self) -> &str;
fn is_bold(&self) -> bool;
fn is_italic(&self) -> bool;
fn is_underlined(&self) -> bool;
fn is_strikethrough(&self) -> bool;
fn font_size(&self) -> Option<i32>;
fn has_hyperlink(&self) -> bool;
fn hyperlink_rel_id(&self) -> Option<&str>;
fn is_all_caps(&self) -> bool;
fn is_small_caps(&self) -> bool;
fn language(&self) -> Option<&str>;
fn baseline_shift_pct(&self) -> Option<i32>;
}Expand description
Extension trait for TextRun providing convenience methods.
Required Methods§
Sourcefn is_underlined(&self) -> bool
fn is_underlined(&self) -> bool
Check if the text is underlined.
Sourcefn is_strikethrough(&self) -> bool
fn is_strikethrough(&self) -> bool
Check if the text has strikethrough.
Sourcefn has_hyperlink(&self) -> bool
fn has_hyperlink(&self) -> bool
Check if the run has a hyperlink.
Sourcefn hyperlink_rel_id(&self) -> Option<&str>
fn hyperlink_rel_id(&self) -> Option<&str>
Get the hyperlink relationship ID.
Sourcefn is_all_caps(&self) -> bool
fn is_all_caps(&self) -> bool
Check if all-caps formatting is set for this run.
Sourcefn is_small_caps(&self) -> bool
fn is_small_caps(&self) -> bool
Check if small-caps formatting is set for this run.
Sourcefn baseline_shift_pct(&self) -> Option<i32>
fn baseline_shift_pct(&self) -> Option<i32>
Get the baseline shift as a signed percentage (positive = superscript).
Implementors§
impl TextRunExt for TextRun
Available on crate feature
dml-text only.