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§
Sourcefn margin_left_emu(&self) -> Option<i32>
fn margin_left_emu(&self) -> Option<i32>
Get the left margin in EMU.
Sourcefn margin_right_emu(&self) -> Option<i32>
fn margin_right_emu(&self) -> Option<i32>
Get the right margin in EMU.
Sourcefn indent_emu(&self) -> Option<i32>
fn indent_emu(&self) -> Option<i32>
Get the first-line indent in EMU.
Sourcefn line_spacing(&self) -> Option<&CTTextSpacing>
fn line_spacing(&self) -> Option<&CTTextSpacing>
Get the line spacing definition.
Sourcefn space_before(&self) -> Option<&CTTextSpacing>
fn space_before(&self) -> Option<&CTTextSpacing>
Get the space-before definition.
Sourcefn space_after(&self) -> Option<&CTTextSpacing>
fn space_after(&self) -> Option<&CTTextSpacing>
Get the space-after definition.
Sourcefn paragraph_level(&self) -> i32
fn paragraph_level(&self) -> i32
Get the paragraph level (0-based; 0 = body text).
Sourcefn bullet_char(&self) -> Option<&str>
fn bullet_char(&self) -> Option<&str>
Get the bullet character, if the bullet is a char bullet (buChar).
Sourcefn text_alignment(&self) -> Option<STTextAlignType>
fn text_alignment(&self) -> Option<STTextAlignType>
Get the text alignment.
Implementors§
impl TextParagraphPropertiesExt for TextParagraphProperties
Available on crate feature
dml-text only.