pub struct Style {
pub style_id: String,
pub name: Name,
pub style_type: StyleType,
pub run_property: RunProperty,
pub paragraph_property: ParagraphProperty,
pub table_property: TableProperty,
pub table_cell_property: TableCellProperty,
pub based_on: Option<BasedOn>,
pub next: Option<Next>,
pub link: Option<Link>,
}
Fields§
§style_id: String
§name: Name
§style_type: StyleType
§run_property: RunProperty
§paragraph_property: ParagraphProperty
§table_property: TableProperty
§table_cell_property: TableCellProperty
§based_on: Option<BasedOn>
§next: Option<Next>
§link: Option<Link>
Implementations§
Source§impl Style
impl Style
pub fn new(style_id: impl Into<String>, style_type: StyleType) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn based_on(self, base: impl Into<String>) -> Self
pub fn next(self, next: impl Into<String>) -> Self
pub fn link(self, link: impl Into<String>) -> Self
pub fn size(self, size: usize) -> Self
pub fn color(self, color: impl Into<String>) -> Self
pub fn highlight(self, color: impl Into<String>) -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn underline(self, line_type: impl Into<String>) -> Self
pub fn vanish(self) -> Self
pub fn text_border(self, b: TextBorder) -> Self
pub fn fonts(self, f: RunFonts) -> Self
pub fn align(self, alignment_type: AlignmentType) -> Self
pub fn indent( self, left: Option<i32>, special_indent: Option<SpecialIndentType>, end: Option<i32>, start_chars: Option<i32>, ) -> Self
pub fn hanging_chars(self, chars: i32) -> Self
pub fn first_line_chars(self, chars: i32) -> Self
pub fn outline_lvl(self, l: usize) -> Self
pub fn table_property(self, p: TableProperty) -> Self
pub fn table_indent(self, v: i32) -> Self
pub fn table_align(self, v: TableAlignmentType) -> Self
pub fn style(self, s: impl Into<String>) -> Self
pub fn layout(self, t: TableLayoutType) -> Self
pub fn width(self, w: usize, t: WidthType) -> Self
pub fn margins(self, margins: TableCellMargins) -> Self
pub fn set_borders(self, borders: TableBorders) -> Self
pub fn set_border(self, border: TableBorder) -> Self
pub fn clear_border(self, position: TableBorderPosition) -> Self
pub fn clear_all_border(self) -> Self
pub fn table_cell_property(self, p: TableCellProperty) -> Self
Trait Implementations§
Source§impl ElementReader for Style
impl ElementReader for Style
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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