Class RichTextBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
RichTextBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.Spreadsheet
Assembly: Syncfusion.AspNetMvc.Spreadsheet.dll
Syntax
public class RichTextBuilder : ControlBuilder
Constructors
RichTextBuilder()
Declaration
public RichTextBuilder()
RichTextBuilder(List<RichText>)
Declaration
public RichTextBuilder(List<RichText> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<RichText> | collection |
Methods
Add()
Declaration
public void Add()
Style(SpreadsheetCellStyle)
Specifies the style of the segment using CellStyleModel, which represents the general cell styling configuration. However, in a rich text segment, only the superscript or subscript options are supported.
Declaration
public RichTextBuilder Style(SpreadsheetCellStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| SpreadsheetCellStyle | style |
Returns
| Type |
|---|
| RichTextBuilder |
Style(Action<SpreadsheetCellStyleBuilder>)
Declaration
public RichTextBuilder Style(Action<SpreadsheetCellStyleBuilder> style)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<SpreadsheetCellStyleBuilder> | style |
Returns
| Type |
|---|
| RichTextBuilder |
Text(String)
Specifies the text content of the segment.
Declaration
public RichTextBuilder Text(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text |
Returns
| Type |
|---|
| RichTextBuilder |