pub struct Paragraph {
pub id: String,
pub children: Vec<ParagraphChild>,
pub property: ParagraphProperty,
pub has_numbering: bool,
}
Fields§
§id: String
§children: Vec<ParagraphChild>
§property: ParagraphProperty
§has_numbering: bool
Implementations§
Source§impl Paragraph
impl Paragraph
pub fn new() -> Paragraph
pub fn id(self, id: impl Into<String>) -> Self
pub fn children(&self) -> &Vec<ParagraphChild>
pub fn add_run(self, run: Run) -> Paragraph
pub fn add_hyperlink(self, link: Hyperlink) -> Self
pub fn add_structured_data_tag(self, t: StructuredDataTag) -> Self
pub fn add_insert(self, insert: Insert) -> Paragraph
pub fn add_delete(self, delete: Delete) -> Paragraph
pub fn align(self, alignment_type: AlignmentType) -> Paragraph
pub fn style(self, style_id: &str) -> Paragraph
pub fn keep_next(self, v: bool) -> Self
pub fn keep_lines(self, v: bool) -> Self
pub fn outline_lvl(self, v: usize) -> Self
pub fn page_break_before(self, v: bool) -> Self
pub fn widow_control(self, v: bool) -> Self
pub fn section_property(self, s: SectionProperty) -> Self
pub fn add_tab(self, t: Tab) -> Self
pub fn indent( self, left: Option<i32>, special_indent: Option<SpecialIndentType>, end: Option<i32>, start_chars: Option<i32>, ) -> Paragraph
pub fn hanging_chars(self, chars: i32) -> Paragraph
pub fn first_line_chars(self, chars: i32) -> Paragraph
pub fn numbering(self, id: NumberingId, level: IndentLevel) -> Self
pub fn size(self, size: usize) -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn fonts(self, f: RunFonts) -> Self
pub fn run_property(self, p: RunProperty) -> Self
pub fn line_spacing(self, spacing: LineSpacing) -> Self
pub fn character_spacing(self, spacing: i32) -> Self
pub fn delete(self, author: impl Into<String>, date: impl Into<String>) -> Self
pub fn insert(self, author: impl Into<String>, date: impl Into<String>) -> Self
pub fn paragraph_property_change(self, p: ParagraphPropertyChange) -> Self
pub fn raw_text(&self) -> String
Trait Implementations§
Source§impl ElementReader for Paragraph
impl ElementReader for Paragraph
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
impl StructuralPartialEq for Paragraph
Auto Trait Implementations§
impl Freeze for Paragraph
impl RefUnwindSafe for Paragraph
impl Send for Paragraph
impl Sync for Paragraph
impl Unpin for Paragraph
impl UnwindSafe for Paragraph
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