Struct onenote_parser::contents::ParagraphStyling
source · pub struct ParagraphStyling { /* private fields */ }
Expand description
A paragraph’s style.
See [MS-ONE] 2.2.43 and [MS-ONE] 2.2.44.
Implementations
sourceimpl ParagraphStyling
impl ParagraphStyling
sourcepub fn strikethrough(&self) -> bool
pub fn strikethrough(&self) -> bool
Whether the text has strike-through formatting.
sourcepub fn superscript(&self) -> bool
pub fn superscript(&self) -> bool
Whether the text is formatted as superscript.
sourcepub fn font_size(&self) -> Option<u16>
pub fn font_size(&self) -> Option<u16>
The font size for this text in half-point increments.
See [MS-ONE] 2.3.16.
sourcepub fn font_color(&self) -> Option<ColorRef>
pub fn font_color(&self) -> Option<ColorRef>
The font color for this text.
See [MS-ONE] 2.3.45.
sourcepub fn highlight(&self) -> Option<ColorRef>
pub fn highlight(&self) -> Option<ColorRef>
The background color for this text.
See [MS-ONE] 2.3.6.
sourcepub fn next_style(&self) -> Option<&str>
pub fn next_style(&self) -> Option<&str>
The name of the default style for the next paragraph.
See [MS-ONE] 2.2.92.
sourcepub fn style_id(&self) -> Option<&str>
pub fn style_id(&self) -> Option<&str>
The paragraph style’s name.
See [MS-ONE] 2.2.83.
sourcepub fn paragraph_alignment(&self) -> Option<ParagraphAlignment>
pub fn paragraph_alignment(&self) -> Option<ParagraphAlignment>
The paragraph alignment.
sourcepub fn paragraph_space_before(&self) -> Option<f32>
pub fn paragraph_space_before(&self) -> Option<f32>
The paragraph’s top margin in half-inch increments.
See [MS-ONE] 2.3.81.
sourcepub fn paragraph_space_after(&self) -> Option<f32>
pub fn paragraph_space_after(&self) -> Option<f32>
The paragraph’s bottom margin in half-inch increments.
See [MS-ONE] 2.3.82.
sourcepub fn paragraph_line_spacing_exact(&self) -> Option<f32>
pub fn paragraph_line_spacing_exact(&self) -> Option<f32>
The paragraph’s line spacing in half-inch increments.
See [MS-ONE] 2.3.83.
sourcepub fn language_code(&self) -> Option<u32>
pub fn language_code(&self) -> Option<u32>
The LCID language code for the text.
See [MS-ONE] 2.3.26.
sourcepub fn math_formatting(&self) -> bool
pub fn math_formatting(&self) -> bool
Whether the text is formatted as a math expression
Trait Implementations
sourceimpl Clone for ParagraphStyling
impl Clone for ParagraphStyling
sourcefn clone(&self) -> ParagraphStyling
fn clone(&self) -> ParagraphStyling
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more