[][src]Struct oox::shared::drawingml::text::paragraphs::TextParagraph

pub struct TextParagraph {
    pub properties: Option<Box<TextParagraphProperties>>,
    pub text_run_list: Vec<TextRun>,
    pub end_paragraph_char_properties: Option<Box<TextCharacterProperties>>,
}

Fields

properties: Option<Box<TextParagraphProperties>>

This element contains all paragraph level text properties for the containing paragraph. These paragraph properties should override any and all conflicting properties that are associated with the paragraph in question.

Xml example

<a:p>
  <a:pPr marL="0" algn="ctr">
    <a:buNone/>
  </a:pPr>
  …
  <a:t>Some Text</a:t>
  …
</a:p>

The paragraph described above is formatting with a left margin of 0 and has all of text runs contained within it centered about the horizontal median of the bounding box for the text body.

Note

To resolve conflicting paragraph properties the linear hierarchy of paragraph properties should be examined starting first with the pPr element. The rule here is that properties that are defined at a level closer to the actual text should take precedence. That is if there is a conflicting property between the pPr and lvl1pPr elements then the pPr property should take precedence because in the property hierarchy it is closer to the actual text being represented.

text_run_list: Vec<TextRun>

The list of text runs in this paragraph.

end_paragraph_char_properties: Option<Box<TextCharacterProperties>>

This element specifies the text run properties that are to be used if another run is inserted after the last run specified. This effectively saves the run property state so that it can be applied when the user enters additional text. If this element is omitted, then the application can determine which default properties to apply. It is recommended that this element be specified at the end of the list of text runs within the paragraph so that an orderly list is maintained.

Methods

impl TextParagraph[src]

pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self>[src]

Trait Implementations

impl Clone for TextParagraph[src]

impl Debug for TextParagraph[src]

impl Default for TextParagraph[src]

impl PartialEq<TextParagraph> for TextParagraph[src]

impl StructuralPartialEq for TextParagraph[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.