pub struct RichText { /* private fields */ }
Expand description

A rich text paragraph.

Formatting

Rich-text formatting is represented by storing the paragraph text along with a list of text runs. Each text run specified formatting that is only applied to a substring of the paragraph text.

The text run indices represent where each text run ends. The last text run always ends at the end of the paragraph text. If there are no text run indices, the text run formatting applies to the whole paragraph.

Text runs can be rendered by splitting the paragraph text at the text run indices and then applying each text run formatting to its respective substring.

Implementations

The paragraph text content.

The formatting of each text run.

See [MS-ONE] 2.3.77.

The character positions where the text runs end.

See [MS-ONE] 2.3.76.

The base paragraph style.

The paragraph’s top margin in half-inch increments.

See [MS-ONE] 2.3.81.

The paragraph’s bottom margin in half-inch increments.

See [MS-ONE] 2.3.82.

The paragraph’s line spacing in half-inch increments.

See [MS-ONE] 2.3.83.

The paragraph’s text alignment.

See [MS-ONE] 2.3.94.

The paragraph’s alignment relative to the containing outline element (if present).

See [MS-ONE] 2.3.27.

The paragraph’s alignment.

See [MS-ONE] 2.3.33.

Note tags for this paragraph.

Objects embedded in this paragraph.

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

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.