Skip to main content

TextParagraphExt

Trait TextParagraphExt 

Source
pub trait TextParagraphExt {
    // Required methods
    fn runs(&self) -> Vec<&TextRun>;
    fn text(&self) -> String;
    fn level(&self) -> Option<i32>;
    fn alignment(&self) -> Option<STTextAlignType>;
}
Expand description

Extension trait for TextParagraph providing convenience methods.

Required Methods§

Source

fn runs(&self) -> Vec<&TextRun>

Get all text runs in the paragraph.

Source

fn text(&self) -> String

Extract all text from the paragraph.

Source

fn level(&self) -> Option<i32>

Get the paragraph level (for bullets/numbering).

Source

fn alignment(&self) -> Option<STTextAlignType>

Get the text alignment.

Implementors§

Source§

impl TextParagraphExt for TextParagraph

Available on crate feature dml-text only.