Skip to main content

XlFontBase.Underline Property

Gets or sets the type of underline applied to the cell content.

Namespace: DevExpress.Export.Xl

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

Declaration

public XlUnderlineType Underline { get; set; }

Property Value

Type Description
XlUnderlineType

An XlUnderlineType enumeration value.

Available values:

Name Description
None

Specifies that the text is not underlined.

Single

Specifies a single underline.

Double

Specifies a double underline.

SingleAccounting

Specifies a single accounting underline.

Adds a single-line underline that is displayed lower than the XlUnderlineType.Single underline and fills the entire cell width if the cell contains text or date values.

DoubleAccounting

Specifies a double accounting underline.

Adds a double-line underline that is displayed lower than the XlUnderlineType.Double underline and fills the entire cell width if the cell contains text or date values.

Remarks

To specify all the required font characteristics, use the XlFont object properties such as XlFontBase.Name, XlFontBase.Size, XlFontBase.Script, XlFont.Color etc. For an example on how to apply font settings to an individual cell, refer to the How to: Configure Cell Font Settings article.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Underline 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.

See Also