[][src]Struct oox::shared::drawingml::text::bodyformatting::TextNormalAutoFit

pub struct TextNormalAutoFit {
    pub font_scale: Option<TextFontScalePercent>,
    pub line_spacing_reduction: Option<TextSpacingPercent>,
}

Fields

font_scale: Option<TextFontScalePercent>

Specifies the percentage of the original font size to which each run in the text body is scaled. In order to auto-fit text within a bounding box it is sometimes necessary to decrease the font size by a certain percentage. Using this attribute the font within a text box can be scaled based on the value provided. A value of 100% scales the text to 100%, while a value of 1% scales the text to 1%. If this attribute is omitted, then a value of 100% is implied.

Defaults to 100000

line_spacing_reduction: Option<TextSpacingPercent>

Specifies the percentage amount by which the line spacing of each paragraph in the text body is reduced. The reduction is applied by subtracting it from the original line spacing value. Using this attribute the vertical spacing between the lines of text can be scaled by a percent amount. A value of 100% reduces the line spacing by 100%, while a value of 1% reduces the line spacing by one percent. If this attribute is omitted, then a value of 0% is implied.

Defaults to 0

Note

This attribute applies only to paragraphs with percentage line spacing.

Methods

impl TextNormalAutoFit[src]

pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self>[src]

Trait Implementations

impl Clone for TextNormalAutoFit[src]

impl Debug for TextNormalAutoFit[src]

impl Default for TextNormalAutoFit[src]

impl PartialEq<TextNormalAutoFit> for TextNormalAutoFit[src]

impl StructuralPartialEq for TextNormalAutoFit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.