# RtfUnderlineStyle

RTF underline variants. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Rtf API Reference.

Enum 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfUnderlineStyle.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

RTF underline variants.

## Inheritance

- Enum
- RtfUnderlineStyle

## Usage

Explore 23 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 22

- Property [RtfLegacyNumbering.UnderlineStyle](/api/rtf/officeimo-rtf-rtflegacynumbering/#property-underlinestyle)
- Property [RtfRun.DirectUnderlineStyle](/api/rtf/officeimo-rtf-rtfrun/#property-directunderlinestyle)
- Property [RtfRun.UnderlineStyle](/api/rtf/officeimo-rtf-rtfrun/#property-underlinestyle)
- Property [RtfStyle.UnderlineStyle](/api/rtf/officeimo-rtf-rtfstyle/#property-underlinestyle)
- Field [RtfUnderlineStyle.Dash](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-dash)
- Field [RtfUnderlineStyle.DashDot](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-dashdot)
- Field [RtfUnderlineStyle.DashDotDot](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-dashdotdot)
- Field [RtfUnderlineStyle.Dotted](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-dotted)
- Field [RtfUnderlineStyle.Double](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-double)
- Field [RtfUnderlineStyle.DoubleWave](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-doublewave)
- Field [RtfUnderlineStyle.HeavyWave](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-heavywave)
- Field [RtfUnderlineStyle.LongDash](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-longdash)
- Field [RtfUnderlineStyle.None](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-none)
- Field [RtfUnderlineStyle.Single](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-single)
- Field [RtfUnderlineStyle.Thick](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-thick)
- Field [RtfUnderlineStyle.ThickDash](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-thickdash)
- Field [RtfUnderlineStyle.ThickDashDot](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-thickdashdot)
- Field [RtfUnderlineStyle.ThickDashDotDot](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-thickdashdotdot)
- Field [RtfUnderlineStyle.ThickDotted](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-thickdotted)
- Field [RtfUnderlineStyle.ThickLongDash](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-thicklongdash)
- Field [RtfUnderlineStyle.Wave](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-wave)
- Field [RtfUnderlineStyle.Words](/api/rtf/officeimo-rtf-rtfunderlinestyle/#field-words)

### Accepted by parameters 1

- Method [RtfRun.SetUnderline](/api/rtf/officeimo-rtf-rtfrun/#method-setunderline-officeimo-rtf-rtfunderlinestyle) parameter `style`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const RtfUnderlineStyle None` [#](#field-none)

[RtfUnderlineStyle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L8)

No underline.

Value: `0`

`public const RtfUnderlineStyle Single` [#](#field-single)

[RtfUnderlineStyle.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L11)

Single continuous underline.

Value: `1`

`public const RtfUnderlineStyle Words` [#](#field-words)

[RtfUnderlineStyle.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L14)

Underline words only.

Value: `2`

`public const RtfUnderlineStyle Double` [#](#field-double)

[RtfUnderlineStyle.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L17)

Double underline.

Value: `3`

`public const RtfUnderlineStyle Dotted` [#](#field-dotted)

[RtfUnderlineStyle.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L20)

Dotted underline.

Value: `4`

`public const RtfUnderlineStyle Dash` [#](#field-dash)

[RtfUnderlineStyle.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L23)

Dashed underline.

Value: `5`

`public const RtfUnderlineStyle DashDot` [#](#field-dashdot)

[RtfUnderlineStyle.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L26)

Dash-dot underline.

Value: `6`

`public const RtfUnderlineStyle DashDotDot` [#](#field-dashdotdot)

[RtfUnderlineStyle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L29)

Dash-dot-dot underline.

Value: `7`

`public const RtfUnderlineStyle Thick` [#](#field-thick)

[RtfUnderlineStyle.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L32)

Thick underline.

Value: `8`

`public const RtfUnderlineStyle ThickDotted` [#](#field-thickdotted)

[RtfUnderlineStyle.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L35)

Thick dotted underline.

Value: `9`

`public const RtfUnderlineStyle ThickDash` [#](#field-thickdash)

[RtfUnderlineStyle.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L38)

Thick dashed underline.

Value: `10`

`public const RtfUnderlineStyle ThickDashDot` [#](#field-thickdashdot)

[RtfUnderlineStyle.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L41)

Thick dash-dot underline.

Value: `11`

`public const RtfUnderlineStyle ThickDashDotDot` [#](#field-thickdashdotdot)

[RtfUnderlineStyle.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L44)

Thick dash-dot-dot underline.

Value: `12`

`public const RtfUnderlineStyle Wave` [#](#field-wave)

[RtfUnderlineStyle.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L47)

Wave underline.

Value: `13`

`public const RtfUnderlineStyle HeavyWave` [#](#field-heavywave)

[RtfUnderlineStyle.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L50)

Heavy wave underline.

Value: `14`

`public const RtfUnderlineStyle DoubleWave` [#](#field-doublewave)

[RtfUnderlineStyle.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L53)

Double wave underline.

Value: `15`

`public const RtfUnderlineStyle LongDash` [#](#field-longdash)

[RtfUnderlineStyle.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L56)

Long dash underline.

Value: `16`

`public const RtfUnderlineStyle ThickLongDash` [#](#field-thicklongdash)

[RtfUnderlineStyle.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfUnderlineStyle.cs#L59)

Thick long dash underline.

Value: `17`

<!-- PowerForge markdown artifact sha256:D504AE3ABE6EC5E539EED7F463DA04372CF67F34D3A87AEAE748EDE3DEC74F1A -->
