Struct docx_rs::FrameProperty
source · pub struct FrameProperty {
pub h: Option<u32>,
pub h_rule: Option<String>,
pub h_anchor: Option<String>,
pub h_space: Option<i32>,
pub v_anchor: Option<String>,
pub v_space: Option<i32>,
pub w: Option<u32>,
pub wrap: Option<String>,
pub x: Option<i32>,
pub x_align: Option<String>,
pub y: Option<i32>,
pub y_align: Option<String>,
}
Fields§
§h: Option<u32>
Frame Height Represents the following attribute in the schema: w:h
h_rule: Option<String>
Frame Height Type Represents the following attribute in the schema: w:hRule
h_anchor: Option<String>
Frame Horizontal Positioning Base Represents the following attribute in the schema: w:hAnchor
h_space: Option<i32>
Horizontal Frame Padding Represents the following attribute in the schema: w:hSpace
v_anchor: Option<String>
§v_space: Option<i32>
§w: Option<u32>
§wrap: Option<String>
Text Wrapping Around Frame Represents the following attribute in the schema: w:wrap
x: Option<i32>
Absolute Horizontal Position Represents the following attribute in the schema: w:x
x_align: Option<String>
Relative Horizontal Position Represents the following attribute in the schema: w:xAlign
y: Option<i32>
Absolute Vertical Position Represents the following attribute in the schema: w:y
y_align: Option<String>
Relative Vertical Position Represents the following attribute in the schema: w:yAlign
Implementations§
source§impl FrameProperty
impl FrameProperty
pub fn new() -> FrameProperty
pub fn wrap(self, wrap: impl Into<String>) -> Self
pub fn v_anchor(self, anchor: impl Into<String>) -> Self
pub fn h_anchor(self, anchor: impl Into<String>) -> Self
pub fn h_rule(self, r: impl Into<String>) -> Self
pub fn x_align(self, align: impl Into<String>) -> Self
pub fn y_align(self, align: impl Into<String>) -> Self
pub fn h_space(self, x: i32) -> Self
pub fn v_space(self, x: i32) -> Self
pub fn x(self, x: i32) -> Self
pub fn y(self, y: i32) -> Self
pub fn width(self, n: u32) -> Self
pub fn height(self, n: u32) -> Self
Trait Implementations§
source§impl Clone for FrameProperty
impl Clone for FrameProperty
source§fn clone(&self) -> FrameProperty
fn clone(&self) -> FrameProperty
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 FrameProperty
impl Debug for FrameProperty
source§impl Default for FrameProperty
impl Default for FrameProperty
source§fn default() -> FrameProperty
fn default() -> FrameProperty
Returns the “default value” for a type. Read more
source§impl ElementReader for FrameProperty
impl ElementReader for FrameProperty
fn read<R: Read>( _r: &mut EventReader<R>, attrs: &[OwnedAttribute] ) -> Result<Self, ReaderError>
source§impl PartialEq for FrameProperty
impl PartialEq for FrameProperty
source§fn eq(&self, other: &FrameProperty) -> bool
fn eq(&self, other: &FrameProperty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FrameProperty
impl Serialize for FrameProperty
impl StructuralPartialEq for FrameProperty
Auto Trait Implementations§
impl Freeze for FrameProperty
impl RefUnwindSafe for FrameProperty
impl Send for FrameProperty
impl Sync for FrameProperty
impl Unpin for FrameProperty
impl UnwindSafe for FrameProperty
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