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+

UnderlineType Enum

Lists underline styles.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[ComVisible(true)]
public enum UnderlineType
<ComVisible(True)>
Public Enum UnderlineType
[ComVisible(true)]
public enum UnderlineType
<ComVisible(True)>
Public Enum UnderlineType

Members

Name Description
DashDotDotted

Specifies a dash-dot-dotted underline.

DashDotted

Specifies a dash-dotted underline.

Dashed

Specifies a dashed underline.

Dotted

Specifies a dotted underline.

Double

Specifies a double underline.

DoubleWave

Specifies a double wave underline.

HeavyWave

Specifies a heavy wave underline.

LongDashed

Specifies a long-dashed underline.

None

Indicates that the text is not underlined.

Single

Specifies a single underline.

ThickDashDotDotted

Specifies a thick dash-dot-dotted underline.

ThickDashDotted

Specifies a thick dash-dotted underline.

ThickDashed

Specifies a thick dashed underline.

ThickDotted

Specifies a thick dotted underline.

ThickLongDashed

Specifies a thick long-dashed underline.

ThickSingle

Specifies a thick single underline.

UnderlineWordsOnly

Specifies an underline that is a single line below all non-space characters. Other characters are not underlined.

Wave

Specifies a wave underline.

Remarks

Use the CharacterPropertiesBase.Underline property to specify the underline style for characters and the CharacterPropertiesBase.UnderlineColor to specify the color.

Examples

document.BeginUpdate()
document.AppendText("Normal" & vbLf & "Formatted" & vbLf & "Normal")
document.EndUpdate()
' The target range is the second paragraph 
Dim range As DocumentRange = document.Paragraphs(1).Range

' Create and customize an object  
' that sets character formatting for the selected range
Dim cp As CharacterProperties = document.BeginUpdateCharacters(range)
cp.FontName = "Comic Sans MS"
cp.FontSize = 18
cp.ForeColor = Color.Blue
cp.BackColor = Color.Snow
cp.Underline = UnderlineType.DoubleWave
cp.UnderlineColor = Color.Red

' Finalize modifications  
' with this method call 
document.EndUpdateCharacters(cp)
See Also