pub struct CharacterProperty<'a> {
Show 39 fields pub style_id: Option<CharacterStyleId<'a>>, pub fonts: Option<Fonts<'a>>, pub bold: Option<Bold>, pub bold_complex: Option<BoldComplex>, pub italics: Option<Italics>, pub italics_complex: Option<ItalicsComplex>, pub caps: Option<Caps>, pub small_caps: Option<SmallCaps>, pub strike: Option<Strike>, pub dstrike: Option<Dstrike>, pub outline: Option<Outline>, pub shadow: Option<Shadow>, pub emboss: Option<Emboss>, pub imprint: Option<Imprint>, pub no_proof: Option<NoProof>, pub snap_to_grid: Option<SnapToGrid>, pub vanish: Option<Vanish>, pub web_hidden: Option<WebHidden>, pub color: Option<Color<'a>>, pub spacing: Option<TextSpacing>, pub scale: Option<Scale>, pub kern: Option<Kern>, pub position: Option<Position>, pub size: Option<Size>, pub size_complex: Option<SizeComplex>, pub highlight: Option<Highlight>, pub underline: Option<Underline<'a>>, pub effect: Option<Effect>, pub border: Option<TextBorder<'a>>, pub shading: Option<Shading<'a>>, pub fit_text: Option<FitText>, pub vertical_align: Option<VertAlign>, pub rtl: Option<RightToLeftText>, pub complex_script: Option<ComplexScript>, pub emphasis: Option<Emphasis>, pub lang: Option<Lang<'a>>, pub east_asian_layout: Option<EastAsianLayout>, pub spec_vanish: Option<SpecVanish>, pub o_math: Option<OMath>,
}
Expand description

Character Property

use docx_rust::formatting::{CharacterProperty, UnderlineStyle};

let prop = CharacterProperty::default()
    .style_id("foo")
    .color("00ff00")
    .color(0xff0000)
    .color((0x00, 0x00, 0xff))
    .size(42usize)
    .bold(true)
    .italics(false)
    .strike(true)
    .dstrike(false)
    .outline(true)
    .underline("00ff00")
    .underline(("ff0000", UnderlineStyle::Dash));

Fields

style_id: Option<CharacterStyleId<'a>>

Specifies the style ID of the character style.

fonts: Option<Fonts<'a>>

Specifies the font.

bold: Option<Bold>

Specifies that the text of the text run is to be bold.

bold_complex: Option<BoldComplex>italics: Option<Italics>

Specifies that the text of the text run is to be italics.

italics_complex: Option<ItalicsComplex>

Complex Script Italics

caps: Option<Caps>

Display All Characters As Capital Letters

small_caps: Option<SmallCaps>

Small Caps

strike: Option<Strike>

Specifies that the contents are to be displayed with a horizontal line through the center of the line.

dstrike: Option<Dstrike>

Specifies that the contents are to be displayed with two horizontal lines through each character.

outline: Option<Outline>

Specifies that the content should be displayed as if it had an outline.

shadow: Option<Shadow>

Shadow

emboss: Option<Emboss>

Embossing

imprint: Option<Imprint>

Imprinting

no_proof: Option<NoProof>

Do Not Check Spelling or Grammar

snap_to_grid: Option<SnapToGrid>

Use Document Grid Settings For Inter-Character Spacing

vanish: Option<Vanish>

Hidden Text

web_hidden: Option<WebHidden>

Web Hidden Text

color: Option<Color<'a>>

Specifies the color to be used to display text.

spacing: Option<TextSpacing>

Character Spacing Adjustment

scale: Option<Scale>

Expanded/Compressed Text

kern: Option<Kern>

Font Kerning

position: Option<Position>

Vertically Raised or Lowered Text

size: Option<Size>

Specifies the font size in half points.

size_complex: Option<SizeComplex>

Complex Script Font Size

highlight: Option<Highlight>

Text Highlighting

underline: Option<Underline<'a>>

Specifies that the content should be displayed with an underline

effect: Option<Effect>

Animated Text Effect

border: Option<TextBorder<'a>>

Text Border

shading: Option<Shading<'a>>

Run Shading

fit_text: Option<FitText>

Manual Run Width

vertical_align: Option<VertAlign>

Subscript/Superscript Text

rtl: Option<RightToLeftText>

Right To Left Text

complex_script: Option<ComplexScript>

Use Complex Script Formatting on Run

emphasis: Option<Emphasis>

Emphasis Mark

lang: Option<Lang<'a>>

Specifies the language to be used.

east_asian_layout: Option<EastAsianLayout>

East Asian Typography Settings

spec_vanish: Option<SpecVanish>

Paragraph Mark Is Always Hidden

o_math: Option<OMath>

Office Open XML Math

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.