[]
Inserts a new ITextRun after the current text run.
Use this method to add a new text run immediately after the current run within the parent IRichText object.
ITextRun InsertAfter(string text)
Function InsertAfter(text As String) As ITextRun
| Type | Name | Description |
|---|---|---|
| string | text | The text of the newly inserted text run. |
| Type | Description |
|---|---|
| ITextRun | The newly created ITextRun, or null if the current text run is no longer available in the parent rich text object. |
IRichText richText = worksheet.Range["A1"].RichText;
richText.Add("Hello");
ITextRun textRun = worksheet.Range["A1"].Characters(1, 3);
ITextRun insertedRun = textRun.InsertAfter("World");
insertedRun.Font.Bold = true;