Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichTextRun Interface

In This Article

A region of the cell text with its own set of font characteristics.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public interface RichTextRun :
    IEquatable<RichTextRun>

#Remarks

A cell in a worksheet may contain rich formatted text (RichTextString) grouped into one or more runs. Each run is specified by the RichTextRun object and defines a region of the cell text (RichTextRun.Text) with its own set of font characteristics (RichTextRun.Font). The RichTextString.Runs property provides access to the collection that stores text runs.

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