# OfficeFontStyle

Describes text style flags without depending on a rendering or font library.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeFontStyle.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontStyle.cs#L7)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

**Attributes**

`Flags`

Describes text style flags without depending on a rendering or font library.

## Inheritance

- Enum
- OfficeFontStyle

## Usage

Explore 33 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 [OfficeChartLayout.AxisTextFontStyle](/api/core/officeimo-drawing-officechartlayout/#property-axistextfontstyle)
- Property [OfficeChartLayout.AxisTitleFontStyle](/api/core/officeimo-drawing-officechartlayout/#property-axistitlefontstyle)
- Property [OfficeChartLayout.DataLabelFontStyle](/api/core/officeimo-drawing-officechartlayout/#property-datalabelfontstyle)
- Property [OfficeChartLayout.LegendFontStyle](/api/core/officeimo-drawing-officechartlayout/#property-legendfontstyle)
- Property [OfficeChartStyle.TitleFontStyle](/api/core/officeimo-drawing-officechartstyle/#property-titlefontstyle)
- Property [OfficeFontFace.Style](/api/core/officeimo-drawing-officefontface/#property-style)
- Method [OfficeFontFaceDescriptor.ToStyle](/api/core/officeimo-drawing-officefontfacedescriptor/#method-tostyle)
- Property [OfficeFontInfo.Style](/api/core/officeimo-drawing-officefontinfo/#property-style)
- Property [OfficeFontProgramLoadRequest.Style](/api/core/officeimo-drawing-officefontprogramloadrequest/#property-style)
- Field [OfficeFontStyle.Bold](/api/core/officeimo-drawing-officefontstyle/#field-bold)
- Field [OfficeFontStyle.Italic](/api/core/officeimo-drawing-officefontstyle/#field-italic)
- Field [OfficeFontStyle.Regular](/api/core/officeimo-drawing-officefontstyle/#field-regular)
- Field [OfficeFontStyle.Strikethrough](/api/core/officeimo-drawing-officefontstyle/#field-strikethrough)
- Field [OfficeFontStyle.Underline](/api/core/officeimo-drawing-officefontstyle/#field-underline)
- Property [OfficeRasterTextOptions.FontStyle](/api/core/officeimo-drawing-officerastertextoptions/#property-fontstyle)

### Accepted by parameters 18

- Constructor [OfficeChartLayout.OfficeChartLayout](/api/core/officeimo-drawing-officechartlayout/#constructor-ctor-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-int32-nullable-system-int32-nullable-system-int32-boolean-boolean-officeimo-drawing-officechartlegendposition-boolean-boolean-boolean-boolean-boolean-string-nullable-system-double-string-officeimo-drawing-officechartdatalabelposition-string-boolean-string-string-string-string-string-boolean-boolean-boolean-boolean-boolean-boolean-boolean-boolean-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxiscrossingposition-officeimo-drawing-officechartaxiscrossingposition-boolean-boolean-nullable-system-double-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark) parameter `axisTextFontStyle`
- Constructor [OfficeChartLayout.OfficeChartLayout](/api/core/officeimo-drawing-officechartlayout/#constructor-ctor-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-int32-nullable-system-int32-nullable-system-int32-boolean-boolean-officeimo-drawing-officechartlegendposition-boolean-boolean-boolean-boolean-boolean-string-nullable-system-double-string-officeimo-drawing-officechartdatalabelposition-string-boolean-string-string-string-string-string-boolean-boolean-boolean-boolean-boolean-boolean-boolean-boolean-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxiscrossingposition-officeimo-drawing-officechartaxiscrossingposition-boolean-boolean-nullable-system-double-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark) parameter `axisTitleFontStyle`
- Constructor [OfficeChartLayout.OfficeChartLayout](/api/core/officeimo-drawing-officechartlayout/#constructor-ctor-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-int32-nullable-system-int32-nullable-system-int32-boolean-boolean-officeimo-drawing-officechartlegendposition-boolean-boolean-boolean-boolean-boolean-string-nullable-system-double-string-officeimo-drawing-officechartdatalabelposition-string-boolean-string-string-string-string-string-boolean-boolean-boolean-boolean-boolean-boolean-boolean-boolean-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxiscrossingposition-officeimo-drawing-officechartaxiscrossingposition-boolean-boolean-nullable-system-double-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark) parameter `dataLabelFontStyle`
- Constructor [OfficeChartLayout.OfficeChartLayout](/api/core/officeimo-drawing-officechartlayout/#constructor-ctor-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-int32-nullable-system-int32-nullable-system-int32-boolean-boolean-officeimo-drawing-officechartlegendposition-boolean-boolean-boolean-boolean-boolean-string-nullable-system-double-string-officeimo-drawing-officechartdatalabelposition-string-boolean-string-string-string-string-string-boolean-boolean-boolean-boolean-boolean-boolean-boolean-boolean-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxisticklabelposition-officeimo-drawing-officechartaxiscrossingposition-officeimo-drawing-officechartaxiscrossingposition-boolean-boolean-nullable-system-double-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-officeimo-drawing-officefontstyle-nullable-system-double-string-nullable-system-double-string-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark-officeimo-drawing-officechartaxistickmark) parameter `legendFontStyle`
- Constructor [OfficeChartStyle.OfficeChartStyle](/api/core/officeimo-drawing-officechartstyle/#constructor-ctor-boolean-collections-generic-ienumerable-officeimo-officecolor-string-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-string-nullable-system-double-nullable-officeimo-drawing-officefontstyle-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-double-nullable-system-double-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokedashstyle-boolean-nullable-system-double-nullable-system-double-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-double-nullable-system-double-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-double-nullable-system-double-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokedashstyle-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-double-nullable-system-double-nullable-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokedashstyle-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-double-nullable-officeimo-drawing-officestrokedashstyle-boolean-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-double) parameter `titleFontStyle`
- Method [OfficeDrawing.AddFont](/api/core/officeimo-drawing-officedrawing/#method-addfont-string-byte-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeFontFaceCollection.Add](/api/core/officeimo-drawing-officefontfacecollection/#method-add-string-byte-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeFontFaceCollection.PlanFallbackRuns](/api/core/officeimo-drawing-officefontfacecollection/#method-planfallbackruns-string-string-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeFontFaceCollection.TryAdd](/api/core/officeimo-drawing-officefontfacecollection/#method-tryadd-string-byte-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeFontFaceCollection.TryMeasureText](/api/core/officeimo-drawing-officefontfacecollection/#method-trymeasuretext-string-double-string-officeimo-drawing-officefontstyle-double) parameter `style`
- Method [OfficeFontFaceCollection.TryResolveFaceForText](/api/core/officeimo-drawing-officefontfacecollection/#method-tryresolvefacefortext-string-string-officeimo-drawing-officefontstyle-officeimo-drawing-officefontface) parameter `style`
- Method [OfficeFontFaceDescriptor.FromStyle](/api/core/officeimo-drawing-officefontfacedescriptor/#method-fromstyle-officeimo-drawing-officefontstyle) parameter `style`
- Constructor [OfficeFontInfo.OfficeFontInfo](/api/core/officeimo-drawing-officefontinfo/#constructor-ctor-string-double-officeimo-drawing-officefontfacedescriptor-officeimo-drawing-officefontstyle) parameter `decorations`
- Constructor [OfficeFontInfo.OfficeFontInfo](/api/core/officeimo-drawing-officefontinfo/#constructor-ctor-string-double-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeFontInfo.WithStyle](/api/core/officeimo-drawing-officefontinfo/#method-withstyle-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeRasterCanvas.DrawText](/api/core/officeimo-drawing-officerastercanvas/#method-drawtext-string-double-double-double-double-officeimo-officecolor-double-officeimo-drawing-officetextalignment-officeimo-drawing-officefontstyle-string) parameter `style`
- Method [OfficeRasterCanvas.MeasureText](/api/core/officeimo-drawing-officerastercanvas/#method-measuretext-string-double-string-officeimo-drawing-officefontstyle) parameter `style`
- Method [OfficeTrueTypeFont.TryLoadFontFamilyForText](/api/core/officeimo-drawing-officetruetypefont/#method-tryloadfontfamilyfortext-string-officeimo-drawing-officefontfacedescriptor-string-officeimo-drawing-officefontstyle) parameter `resolvedStyle`

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 OfficeFontStyle Regular` [#](#field-regular)

[OfficeFontStyle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontStyle.cs#L9)

Regular text.

Value: `0`

`public const OfficeFontStyle Bold` [#](#field-bold)

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

Bold text.

Value: `1`

`public const OfficeFontStyle Italic` [#](#field-italic)

[OfficeFontStyle.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontStyle.cs#L15)

Italic text.

Value: `2`

`public const OfficeFontStyle Underline` [#](#field-underline)

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

Underlined text.

Value: `4`

`public const OfficeFontStyle Strikethrough` [#](#field-strikethrough)

[OfficeFontStyle.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontStyle.cs#L21)

Strikethrough text.

Value: `8`

<!-- PowerForge markdown artifact sha256:06E8E8C4E119BD7BCA062B1AB923CAA93FF377C398D73E74968298EA7D34EE46 -->
