[−][src]Struct oox::shared::drawingml::text::paragraphs::TextParagraph
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]
fn clone(&self) -> TextParagraph
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextParagraph
[src]
impl Default for TextParagraph
[src]
fn default() -> TextParagraph
[src]
impl PartialEq<TextParagraph> for TextParagraph
[src]
fn eq(&self, other: &TextParagraph) -> bool
[src]
fn ne(&self, other: &TextParagraph) -> bool
[src]
impl StructuralPartialEq for TextParagraph
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextParagraph
impl Send for TextParagraph
impl Sync for TextParagraph
impl Unpin for TextParagraph
impl UnwindSafe for TextParagraph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,