[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRichText.Add

Add Method

Add(string)

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.

Declaration
ITextRun Add(string text)
Function Add(text As String) As ITextRun
Parameters
Type Name Description
string text

The text to add to the current rich text object.

Returns
Type Description
ITextRun

The newly added ITextRun.

Examples
IRichText richText = worksheet.Range["A1"].RichText;
ITextRun textRun = richText.Add("Document Solutions");
textRun.Font.Bold = true;