pub struct ParagraphProperty {Show 15 fields
pub run_property: RunProperty,
pub style: Option<ParagraphStyle>,
pub numbering_property: Option<NumberingProperty>,
pub alignment: Option<Justification>,
pub indent: Option<Indent>,
pub line_spacing: Option<LineSpacing>,
pub keep_next: Option<bool>,
pub keep_lines: Option<bool>,
pub page_break_before: Option<bool>,
pub widow_control: Option<bool>,
pub outline_lvl: Option<OutlineLvl>,
pub section_property: Option<SectionProperty>,
pub tabs: Vec<Tab>,
pub paragraph_property_change: Option<ParagraphPropertyChange>,
pub borders: Option<ParagraphBorders>,
/* private fields */
}
Fields§
§run_property: RunProperty
§style: Option<ParagraphStyle>
§numbering_property: Option<NumberingProperty>
§alignment: Option<Justification>
§indent: Option<Indent>
§line_spacing: Option<LineSpacing>
§keep_next: Option<bool>
§keep_lines: Option<bool>
§page_break_before: Option<bool>
§widow_control: Option<bool>
§outline_lvl: Option<OutlineLvl>
§section_property: Option<SectionProperty>
§tabs: Vec<Tab>
§paragraph_property_change: Option<ParagraphPropertyChange>
§borders: Option<ParagraphBorders>
Implementations§
Source§impl ParagraphProperty
impl ParagraphProperty
pub fn new() -> ParagraphProperty
pub fn align(self, alignment_type: AlignmentType) -> Self
pub fn style(self, style_id: &str) -> Self
pub fn indent( self, left: Option<i32>, special_indent: Option<SpecialIndentType>, end: Option<i32>, start_chars: Option<i32>, ) -> Self
pub fn numbering(self, id: NumberingId, level: IndentLevel) -> Self
pub fn numbering_property(self, np: NumberingProperty) -> Self
pub fn line_spacing(self, spacing: LineSpacing) -> Self
pub fn character_spacing(self, spacing: i32) -> Self
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 add_tab(self, t: Tab) -> Self
pub fn section_property(self, s: SectionProperty) -> Self
pub fn paragraph_property_change(self, p: ParagraphPropertyChange) -> Self
pub fn set_borders(self, borders: ParagraphBorders) -> Self
pub fn set_border(self, border: ParagraphBorder) -> Self
pub fn clear_border(self, position: ParagraphBorderPosition) -> Self
pub fn clear_all_borders(self) -> Self
Trait Implementations§
Source§impl Clone for ParagraphProperty
impl Clone for ParagraphProperty
Source§fn clone(&self) -> ParagraphProperty
fn clone(&self) -> ParagraphProperty
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParagraphProperty
impl Debug for ParagraphProperty
Source§impl Default for ParagraphProperty
impl Default for ParagraphProperty
Source§fn default() -> ParagraphProperty
fn default() -> ParagraphProperty
Returns the “default value” for a type. Read more
Source§impl ElementReader for ParagraphProperty
impl ElementReader for ParagraphProperty
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
Source§impl PartialEq for ParagraphProperty
impl PartialEq for ParagraphProperty
Source§impl Serialize for ParagraphProperty
impl Serialize for ParagraphProperty
impl StructuralPartialEq for ParagraphProperty
Auto Trait Implementations§
impl Freeze for ParagraphProperty
impl RefUnwindSafe for ParagraphProperty
impl Send for ParagraphProperty
impl Sync for ParagraphProperty
impl Unpin for ParagraphProperty
impl UnwindSafe for ParagraphProperty
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