Back to DOM
UnderlineValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the underline style applied to text.
Remarks
Used by . The values cover the simple line styles (single, double, thick, dotted, dashed, wave) and their heavy variants, plus the option that underlines only non-space characters and the option that explicitly removes the underline. Underline.LineValue Words None
Examples
csharp
1// 1. Single underline
2var u = new Underline { LineValue = UnderlineValues.Single };
3
csharp
1// 2. Double underline
2var u = new Underline { LineValue = UnderlineValues.Double };
3
csharp
1// 3. Wave underline for hyperlinks
2var u = new Underline { LineValue = UnderlineValues.Wave, Color = Color.Blue };
3
csharp
1// 4. Words-only underline
2var u = new Underline { LineValue = UnderlineValues.Words };
3
Fields
Dash
Dashed underline.
DashDotDotHeavy
Thick dash-dot-dot underline.
DashDotHeavy
Thick dash-dot underline.
DashedHeavy
Thick dashed underline.
DashLong
Long dashed underline.
DashLongHeavy
Thick long dashed underline.
DotDash
Dash-dot underline.
DotDotDash
Dash-dot-dot underline.
Dotted
Dotted underline.
DottedHeavy
Thick dotted underline.
Double
Double-line underline.
None
No underline.
Single
Single-line underline.
Thick
Thick single-line underline.
Wave
Wave underline.
WavyDouble
Double wave underline.
WavyHeavy
Heavy wave underline.
Words
Underline non-space characters only.