[]
Represents a range of characters in a IRichText object.
An ITextRun object stores the text and character-level formatting
for a contiguous portion of rich text in a cell. You can obtain this interface
from Add(string) or from a character range returned by
Characters(int, int).
public interface ITextRun
Public Interface ITextRun
IRichText richText = worksheet.Range["A1"].RichText;
ITextRun textRun = richText.Add("Document");
textRun.Font.Bold = true;
textRun.Text = "Document Solutions";
| Name | Description |
|---|---|
| Font | Returns the font settings of current text run. |
| Text | Gets or sets the text of the current text run. |
| Name | Description |
|---|---|
| Delete() | Deletes this ITextRun from its parent IRichText object. Use this method to remove the current text run from the rich text content of a cell. |
| InsertAfter(string) | 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. |
| InsertBefore(string) | Inserts a new ITextRun before the current text run. Use this method to add a new text run immediately before the current run within the parent IRichText object. |