Skip to main content

TextParagraphPropertiesExt

Trait TextParagraphPropertiesExt 

Source
pub trait TextParagraphPropertiesExt {
    // Required methods
    fn margin_left_emu(&self) -> Option<i32>;
    fn margin_right_emu(&self) -> Option<i32>;
    fn indent_emu(&self) -> Option<i32>;
    fn line_spacing(&self) -> Option<&CTTextSpacing>;
    fn space_before(&self) -> Option<&CTTextSpacing>;
    fn space_after(&self) -> Option<&CTTextSpacing>;
    fn paragraph_level(&self) -> i32;
    fn bullet_char(&self) -> Option<&str>;
    fn text_alignment(&self) -> Option<STTextAlignType>;
}
Expand description

Extension methods for TextParagraphProperties (ECMA-376 §21.1.2.2.7, CT_TextParagraphProperties).

Provides typed access to paragraph-level formatting properties such as margins, indentation, line spacing, and bullets. All accessors are gated on dml-text.

Required Methods§

Source

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

Get the left margin in EMU.

Source

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

Get the right margin in EMU.

Source

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

Get the first-line indent in EMU.

Source

fn line_spacing(&self) -> Option<&CTTextSpacing>

Get the line spacing definition.

Source

fn space_before(&self) -> Option<&CTTextSpacing>

Get the space-before definition.

Source

fn space_after(&self) -> Option<&CTTextSpacing>

Get the space-after definition.

Source

fn paragraph_level(&self) -> i32

Get the paragraph level (0-based; 0 = body text).

Source

fn bullet_char(&self) -> Option<&str>

Get the bullet character, if the bullet is a char bullet (buChar).

Source

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

Get the text alignment.

Implementors§

Source§

impl TextParagraphPropertiesExt for TextParagraphProperties

Available on crate feature dml-text only.