# OfficeTextDecorationStyle

Defines the line pattern used to decorate shared drawing text.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextFormatting.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L6)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Defines the line pattern used to decorate shared drawing text.

## Inheritance

- Enum
- OfficeTextDecorationStyle

## Usage

Explore 41 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 15

- Property [OfficeDrawingText.StrikethroughStyle](/api/core/officeimo-drawing-officedrawingtext/#property-strikethroughstyle)
- Property [OfficeDrawingText.UnderlineStyle](/api/core/officeimo-drawing-officedrawingtext/#property-underlinestyle)
- Property [OfficeRichTextRun.StrikethroughStyle](/api/core/officeimo-drawing-officerichtextrun/#property-strikethroughstyle)
- Property [OfficeRichTextRun.UnderlineStyle](/api/core/officeimo-drawing-officerichtextrun/#property-underlinestyle)
- Property [OfficeRichTextSegment.StrikethroughStyle](/api/core/officeimo-drawing-officerichtextsegment/#property-strikethroughstyle)
- Property [OfficeRichTextSegment.UnderlineStyle](/api/core/officeimo-drawing-officerichtextsegment/#property-underlinestyle)
- Field [OfficeTextDecorationStyle.Dashed](/api/core/officeimo-drawing-officetextdecorationstyle/#field-dashed)
- Field [OfficeTextDecorationStyle.Dotted](/api/core/officeimo-drawing-officetextdecorationstyle/#field-dotted)
- Field [OfficeTextDecorationStyle.Double](/api/core/officeimo-drawing-officetextdecorationstyle/#field-double)
- Field [OfficeTextDecorationStyle.None](/api/core/officeimo-drawing-officetextdecorationstyle/#field-none)
- Field [OfficeTextDecorationStyle.Single](/api/core/officeimo-drawing-officetextdecorationstyle/#field-single)
- Field [OfficeTextDecorationStyle.Wavy](/api/core/officeimo-drawing-officetextdecorationstyle/#field-wavy)
- Field [OfficeTextDecorationStyle.Words](/api/core/officeimo-drawing-officetextdecorationstyle/#field-words)
- Property [OfficeTextTabLeaderStyle.StrikethroughStyle](/api/core/officeimo-drawing-officetexttableaderstyle/#property-strikethroughstyle)
- Property [OfficeTextTabLeaderStyle.UnderlineStyle](/api/core/officeimo-drawing-officetexttableaderstyle/#property-underlinestyle)

### Accepted by parameters 26

- Method [OfficeDrawing.AddPositionedText](/api/core/officeimo-drawing-officedrawing/#method-addpositionedtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-nullable-system-double-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Method [OfficeDrawing.AddPositionedText](/api/core/officeimo-drawing-officedrawing/#method-addpositionedtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-nullable-system-double-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Method [OfficeDrawing.AddStyledText](/api/core/officeimo-drawing-officedrawing/#method-addstyledtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Method [OfficeDrawing.AddStyledText](/api/core/officeimo-drawing-officedrawing/#method-addstyledtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Constructor [OfficeDrawingText.OfficeDrawingText](/api/core/officeimo-drawing-officedrawingtext/#constructor-ctor-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Constructor [OfficeDrawingText.OfficeDrawingText](/api/core/officeimo-drawing-officedrawingtext/#constructor-ctor-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Method [OfficeRasterCanvas.DrawTextLine](/api/core/officeimo-drawing-officerastercanvas/#method-drawtextline-string-double-double-double-officeimo-officecolor-boolean-boolean-officeimo-drawing-officetextalignment-double-double-double-boolean-boolean-string-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-nullable-officeimo-officecolor) parameter `strikethroughStyle`
- Method [OfficeRasterCanvas.DrawTextLine](/api/core/officeimo-drawing-officerastercanvas/#method-drawtextline-string-double-double-double-officeimo-officecolor-boolean-boolean-officeimo-drawing-officetextalignment-double-double-double-boolean-boolean-string-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-nullable-officeimo-officecolor) parameter `underlineStyle`
- Constructor [OfficeRichTextRun.OfficeRichTextRun](/api/core/officeimo-drawing-officerichtextrun/#constructor-ctor-string-double-officeimo-officecolor-boolean-boolean-boolean-string-boolean-nullable-officeimo-officecolor-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Constructor [OfficeRichTextRun.OfficeRichTextRun](/api/core/officeimo-drawing-officerichtextrun/#constructor-ctor-string-double-officeimo-officecolor-boolean-boolean-boolean-string-boolean-nullable-officeimo-officecolor-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-drawing-officetextparagraphindent) parameter `underlineStyle`
- Constructor [OfficeRichTextSegment.OfficeRichTextSegment](/api/core/officeimo-drawing-officerichtextsegment/#constructor-ctor-string-double-double-officeimo-officecolor-boolean-boolean-boolean-string-boolean-nullable-officeimo-officecolor-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Constructor [OfficeRichTextSegment.OfficeRichTextSegment](/api/core/officeimo-drawing-officerichtextsegment/#constructor-ctor-string-double-double-officeimo-officecolor-boolean-boolean-boolean-string-boolean-nullable-officeimo-officecolor-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Method [OfficeTextBlockRenderer.AppendSvgStyledTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgstyledtextblock-text-stringbuilder-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `strikethroughStyle`
- Method [OfficeTextBlockRenderer.AppendSvgStyledTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgstyledtextblock-text-stringbuilder-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `underlineStyle`
- Method [OfficeTextBlockRenderer.AppendSvgTextElement](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgtextelement-text-stringbuilder-string-double-double-double-officeimo-officecolor-string-double-officeimo-drawing-officetextalignment-boolean-boolean-boolean-double-double-double-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `strikethroughStyle`
- Method [OfficeTextBlockRenderer.AppendSvgTextElement](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgtextelement-text-stringbuilder-string-double-double-double-officeimo-officecolor-string-double-officeimo-drawing-officetextalignment-boolean-boolean-boolean-double-double-double-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `underlineStyle`
- Method [OfficeTextBlockRenderer.DrawRasterTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrastertextblock-officeimo-drawing-officerastercanvas-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-double-boolean-string-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `strikethroughStyle`
- Method [OfficeTextBlockRenderer.DrawRasterTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrastertextblock-officeimo-drawing-officerastercanvas-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-double-boolean-string-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `underlineStyle`
- Method [OfficeTextBlockRenderer.DrawRasterTextBox](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrastertextbox-officeimo-drawing-officerastercanvas-officeimo-drawing-officetextblockrenderplan-officeimo-officecolor-boolean-boolean-boolean-nullable-officeimo-drawing-officetextalignment-nullable-officeimo-drawing-officetextverticalalignment-double-double-double-nullable-officeimo-officecolor-double-double-boolean-double-boolean-string-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Method [OfficeTextBlockRenderer.DrawRasterTextBox](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrastertextbox-officeimo-drawing-officerastercanvas-officeimo-drawing-officetextblockrenderplan-officeimo-officecolor-boolean-boolean-boolean-nullable-officeimo-drawing-officetextalignment-nullable-officeimo-drawing-officetextverticalalignment-double-double-double-nullable-officeimo-officecolor-double-double-boolean-double-boolean-string-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Method [OfficeTextBlockRenderer.WriteSvgTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-writesvgtextblock-xml-xmlwriter-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-string-action-system-xml-xmlwriter-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Method [OfficeTextBlockRenderer.WriteSvgTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-writesvgtextblock-xml-xmlwriter-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-string-action-system-xml-xmlwriter-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Method [OfficeTextBlockRenderer.WriteSvgTextBox](/api/core/officeimo-drawing-officetextblockrenderer/#method-writesvgtextbox-xml-xmlwriter-officeimo-drawing-officetextblockrenderplan-officeimo-officecolor-string-boolean-boolean-boolean-double-double-double-string-nullable-officeimo-officecolor-double-double-action-system-xml-xmlwriter-action-system-xml-xmlwriter-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `strikethroughStyle`
- Method [OfficeTextBlockRenderer.WriteSvgTextBox](/api/core/officeimo-drawing-officetextblockrenderer/#method-writesvgtextbox-xml-xmlwriter-officeimo-drawing-officetextblockrenderplan-officeimo-officecolor-string-boolean-boolean-boolean-double-double-double-string-nullable-officeimo-officecolor-double-double-action-system-xml-xmlwriter-action-system-xml-xmlwriter-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `underlineStyle`
- Constructor [OfficeTextTabLeaderStyle.OfficeTextTabLeaderStyle](/api/core/officeimo-drawing-officetexttableaderstyle/#constructor-ctor-nullable-officeimo-officelength-double-nullable-officeimo-officecolor-string-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-drawing-officetextdecorationstyle-nullable-officeimo-drawing-officetextdecorationstyle-nullable-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor-boolean-nullable-system-double) parameter `strikethroughStyle`
- Constructor [OfficeTextTabLeaderStyle.OfficeTextTabLeaderStyle](/api/core/officeimo-drawing-officetexttableaderstyle/#constructor-ctor-nullable-officeimo-officelength-double-nullable-officeimo-officecolor-string-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-drawing-officetextdecorationstyle-nullable-officeimo-drawing-officetextdecorationstyle-nullable-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor-boolean-nullable-system-double) parameter `underlineStyle`

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 OfficeTextDecorationStyle None` [#](#field-none)

[OfficeTextFormatting.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L8)

No decoration line.

Value: `0`

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

[OfficeTextFormatting.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L10)

One solid decoration line.

Value: `1`

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

[OfficeTextFormatting.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L12)

Two parallel solid decoration lines.

Value: `2`

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

[OfficeTextFormatting.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L14)

A dotted decoration line.

Value: `3`

`public const OfficeTextDecorationStyle Dashed` [#](#field-dashed)

[OfficeTextFormatting.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L16)

A dashed decoration line.

Value: `4`

`public const OfficeTextDecorationStyle Wavy` [#](#field-wavy)

[OfficeTextFormatting.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L18)

A wavy decoration line.

Value: `5`

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

[OfficeTextFormatting.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextFormatting.cs#L20)

One solid line beneath each word, leaving whitespace undecorated.

Value: `6`

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