pub struct CT_TextParagraph {
pub properties: Option<CT_TextParagraphProperties>,
pub runs: Vec<TextRun>,
pub end_properties: Option<CT_TextCharacterProperties>,
/* private fields */
}Expand description
A DrawingML paragraph with ordered runs, breaks, and fields.
Fields§
§properties: Option<CT_TextParagraphProperties>§runs: Vec<TextRun>§end_properties: Option<CT_TextCharacterProperties>Implementations§
Source§impl CT_TextParagraph
impl CT_TextParagraph
Sourcepub fn properties_mut(&mut self) -> &mut CT_TextParagraphProperties
pub fn properties_mut(&mut self) -> &mut CT_TextParagraphProperties
Returns direct properties, inserting them before preserved content.
Sourcepub fn set_text(&mut self, text: &str)
pub fn set_text(&mut self, text: &str)
Replaces ordered text choices with one regular run, split at each
vertical tab by an a:br with the run’s formatting, since a vertical
tab is how the paragraph text reports a line break.
The first existing regular run supplies direct formatting and unmodelled run content for the replacement. A paragraph without one formats the new run with its end-of-paragraph properties, without their hyperlinks, as PowerPoint formats text typed into an empty paragraph.
Sourcepub fn add_run(&mut self, text: &str) -> &mut CT_RegularTextRun
pub fn add_run(&mut self, text: &str) -> &mut CT_RegularTextRun
Appends one regular run after the existing ordered text choices.
Sourcepub fn write_xml<W: Write>(&self, writer: &mut Writer<W>) -> Result<()>
pub fn write_xml<W: Write>(&self, writer: &mut Writer<W>) -> Result<()>
Writes a paragraph with fixed prefixes and schema child order.
pub fn raw_children(&self) -> &OrderedRawChildren
Trait Implementations§
Source§impl Clone for CT_TextParagraph
impl Clone for CT_TextParagraph
Source§impl Debug for CT_TextParagraph
impl Debug for CT_TextParagraph
Source§impl Default for CT_TextParagraph
impl Default for CT_TextParagraph
impl Eq for CT_TextParagraph
Auto Trait Implementations§
impl Freeze for CT_TextParagraph
impl RefUnwindSafe for CT_TextParagraph
impl Send for CT_TextParagraph
impl Sync for CT_TextParagraph
impl Unpin for CT_TextParagraph
impl UnsafeUnpin for CT_TextParagraph
impl UnwindSafe for CT_TextParagraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more