RunFormat class
A run's resolved formatting. Sizes in points.
Constructors
- RunFormat({bool bold = false, bool italic = false, UnderlineStyle underline = UnderlineStyle.none, bool strike = false, bool doubleStrike = false, int? color, int? highlight, int? fill, double size = 11, String? font, VerticalTextPosition verticalPosition = VerticalTextPosition.baseline, bool allCaps = false, bool smallCaps = false, double letterSpacing = 0})
-
Run formatting; the defaults are plain 11-point text.
const
Properties
- allCaps → bool
-
Whether lowercase letters show as capitals (
w:caps).final - bold → bool
-
Whether the text is bold (
w:b).final - color → int?
-
0xAARRGGBB, or null for automatic (the reader's text colour).
final
- doubleStrike → bool
-
Whether the text is struck through with two lines (
w:dstrike).final - fill → int?
-
Run shading, 0xAARRGGBB.
final
- font → String?
-
Font family name as written in the document, or null for the default.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- highlight → int?
-
Highlighter colour, 0xAARRGGBB.
final
- italic → bool
-
Whether the text is italic (
w:i).final - letterSpacing → double
-
Extra space between characters, in points.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
Font size in points (
w:sz, which is in half-points).final - smallCaps → bool
-
Whether lowercase letters show as small capitals (
w:smallCaps).final - strike → bool
-
Whether the text is struck through with one line (
w:strike).final - underline → UnderlineStyle
-
The underline (
w:u).final - verticalPosition → VerticalTextPosition
-
Superscript, subscript or neither (
w:vertAlign).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override