![]() |
NanoXLSX.Formatting 3.0.0
|
Builder for creating formatted text entries with a fluent API. More...
Public Member Functions | |
| FormattedTextBuilder | AddRun (string text, Font font=null) |
| Adds a text run with an optional style to the formatted text. | |
| FormattedTextBuilder | AddRun (string text, Action< InlineStyleBuilder > styleBuilder) |
| Adds a text run with a style defined by a style builder action. | |
| FormattedTextBuilder | AddPhoneticRun (string text, uint startBase, uint endBase) |
| Adds a phonetic run to the formatted text. | |
| FormattedTextBuilder | SetPhoneticProperties (Font fontReference, PhoneticRun.PhoneticType type=PhoneticRun.PhoneticType.FullwidthKatakana, PhoneticRun.PhoneticAlignment alignment=PhoneticRun.PhoneticAlignment.Left) |
| Sets the phonetic properties for the formatted text. | |
| FormattedText | Build () |
| Method to build the formatted text instance. | |
Static Public Member Functions | |
| static implicit | operator FormattedText (FormattedTextBuilder builder) |
| Implicit conversion operator to convert the builder to a FormattedText instance. | |
Builder for creating formatted text entries with a fluent API.
Definition at line 16 of file FormattedTextBuilder.cs.
| FormattedTextBuilder NanoXLSX.Extensions.FormattedTextBuilder.AddPhoneticRun | ( | string | text, |
| uint | startBase, | ||
| uint | endBase ) |
Adds a phonetic run to the formatted text.
| text | The phonetic text to be displayed (Ruby text,like Furigana, Pinyin or Zhuyin) |
| startBase | The start index of the base text (character where the Ruby text starts) |
| endBase | The end index of the base text (character where the Ruby text ends) |
Definition at line 51 of file FormattedTextBuilder.cs.
| FormattedTextBuilder NanoXLSX.Extensions.FormattedTextBuilder.AddRun | ( | string | text, |
| Action< InlineStyleBuilder > | styleBuilder ) |
Adds a text run with a style defined by a style builder action.
| text | Plain text of the run |
| styleBuilder | Action to build the inline style |
Definition at line 38 of file FormattedTextBuilder.cs.
| FormattedTextBuilder NanoXLSX.Extensions.FormattedTextBuilder.AddRun | ( | string | text, |
| Font | font = null ) |
Adds a text run with an optional style to the formatted text.
| text | Plain text of the run |
| font | Font style |
Definition at line 26 of file FormattedTextBuilder.cs.
| FormattedText NanoXLSX.Extensions.FormattedTextBuilder.Build | ( | ) |
Method to build the formatted text instance.
Definition at line 74 of file FormattedTextBuilder.cs.
|
static |
Implicit conversion operator to convert the builder to a FormattedText instance.
| builder | The FormattedTextBuilder instance |
Definition at line 83 of file FormattedTextBuilder.cs.
| FormattedTextBuilder NanoXLSX.Extensions.FormattedTextBuilder.SetPhoneticProperties | ( | Font | fontReference, |
| PhoneticRun.PhoneticType | type = PhoneticRun::PhoneticType::FullwidthKatakana, | ||
| PhoneticRun.PhoneticAlignment | alignment = PhoneticRun::PhoneticAlignment::Left ) |
Sets the phonetic properties for the formatted text.
| fontReference | Font reference that is used to render the Ruby text |
| type | Phonetic type |
| alignment | Phonetic alignment |
Definition at line 64 of file FormattedTextBuilder.cs.