[]
Adds a text run into the current rich text object.
The new text run is appended to this IRichText and can be used to apply character-level formatting to the added text.
ITextRun Add(string text)
Function Add(text As String) As ITextRun
| Type | Name | Description |
|---|---|---|
| string | text | The text to add to the current rich text object. |
| Type | Description |
|---|---|
| ITextRun | The newly added ITextRun. |
IRichText richText = worksheet.Range["A1"].RichText;
ITextRun textRun = richText.Add("Document Solutions");
textRun.Font.Bold = true;