The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

RichTextString.Runs Property

Provides access to a collection of text runs that compose rich text in a cell.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

public IEnumerable<RichTextRun> Runs { get; }
Public ReadOnly Property Runs As IEnumerable(Of RichTextRun)
public IEnumerable<RichTextRun> Runs { get; }
Public ReadOnly Property Runs As IEnumerable(Of RichTextRun)
public IEnumerable<RichTextRun> Runs { get; }
Public ReadOnly Property Runs As IEnumerable(Of RichTextRun)

Property Value

Type Description
IEnumerable<RichTextRun>

A IEnumerable<T><RichTextRun,> collection.

Property Value

Type Description
IEnumerable<RichTextRun>

A IEnumerable<T><RichTextRun,> collection.

Property Value

Type Description
IEnumerable<RichTextRun>

A IEnumerable<T><RichTextRun,> collection.

Remarks

A worksheet cell may contain a rich formatted text that represents a cell text divided into separate regions - text runs, each with its own set of font characteristics. Each run is defined by the RichTextRun object and is stored in the Runs collection. To view a run's text and font settings, use the RichTextRun.Text and RichTextRun.Font properties, respectively.

Spreadsheet_RichText

To apply rich formatting to the cell text, do one of the following:

Call the CellRange.SetRichText method to assign the rich formatted text to a cell.

For details on how to apply different fonts to specific regions of the cell text, refer to the How to: Apply Rich Formatting to Cell Text document.

See Also