Specifies special text formatting for a substring. More...
Public Member Functions | |
Emphasis (int startIndex, int length, Color color, bool bold, bool italic, bool underline) | |
Initializes a new Emphasis struct. More... | |
Properties | |
int | startIndex [get, set] |
Gets or sets the first character where the formatting begins. More... | |
int | length [get, set] |
Gets or sets the length of the substring that should be formatted. More... | |
Color | color [get, set] |
Gets or sets the color to use for this substring. More... | |
bool | bold [get, set] |
Gets or sets a value indicating whether to display the substring in bold. More... | |
bool | italic [get, set] |
Gets or sets a value indicating whether to display the substring in italics. More... | |
bool | underline [get, set] |
Gets or sets a value indicating whether to display the substring underlined. More... | |
Specifies special text formatting for a substring.
Emphases are used by FormattedText.
PixelCrushers.DialogueSystem.Emphasis.Emphasis | ( | int | startIndex, |
int | length, | ||
Color | color, | ||
bool | bold, | ||
bool | italic, | ||
bool | underline | ||
) |
Initializes a new Emphasis struct.
startIndex | Start index of the substring. |
length | Length of the substring. |
color | Color of the substring. |
bold | If true , display in bold. |
italic | If true , display in italics. |
underline | If true , display underlined. |
|
getset |
Gets or sets a value indicating whether to display the substring in bold.
true
if bold; otherwise, false
.
|
getset |
Gets or sets the color to use for this substring.
The color.
|
getset |
Gets or sets a value indicating whether to display the substring in italics.
true
if italic; otherwise, false
.
|
getset |
Gets or sets the length of the substring that should be formatted.
The length.
|
getset |
Gets or sets the first character where the formatting begins.
The start index.
|
getset |
Gets or sets a value indicating whether to display the substring underlined.
true
if underlined; otherwise, false
.