Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

RichTextRunFont.UnderlineType Property

Gets or sets the underline type applied to the current text run.

Namespace: DevExpress.Spreadsheet

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

Declaration

public UnderlineType UnderlineType { get; set; }

Property Value

Type Description
UnderlineType

An UnderlineType enumeration value.

Remarks

The RichTextRunFont object’s properties allow you to specify font settings for individual regions of the cell text (so-called text runs defined by the RichTextRun objects).

You can do one of the following to apply rich formatting to a portion of the cell text:

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

To view font settings applied to an existing run, use the run’s RichTextRun.Font property.

Refer to the How to: Apply Rich Formatting to Cell Text document for examples on how to apply different fonts to specific regions of the cell text.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnderlineType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Implements

See Also