# OfficeTextMeasurementStyle

Normalized font and DPI data used by OfficeTextMeasurer.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

Normalized font and DPI data used by [OfficeTextMeasurer](/api/core/officeimo-drawing-officetextmeasurer/).

## Inheritance

- ValueType
- OfficeTextMeasurementStyle

## Usage

Explore 8 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 3

- Method [OfficeTextMeasurer.CreateDefaultStyle](/api/core/officeimo-drawing-officetextmeasurer/#method-createdefaultstyle-double)
- Method [OfficeTextMeasurer.CreateStyle](/api/core/officeimo-drawing-officetextmeasurer/#method-createstyle-officeimo-drawing-officefontinfo)
- Property [OfficeTextMeasurer.DefaultStyle](/api/core/officeimo-drawing-officetextmeasurer/#property-defaultstyle)

### Accepted by parameters 5

- Method [OfficeTextMeasurer.Measure](/api/core/officeimo-drawing-officetextmeasurer/#method-measure-string-officeimo-drawing-officetextmeasurementstyle) parameter `style`
- Method [OfficeTextMeasurer.MeasureLineHeight](/api/core/officeimo-drawing-officetextmeasurer/#method-measurelineheight-officeimo-drawing-officetextmeasurementstyle) parameter `style`
- Method [OfficeTextMeasurer.MeasureLineHeightOrDefault](/api/core/officeimo-drawing-officetextmeasurer/#method-measurelineheightordefault-string-officeimo-drawing-officetextmeasurementstyle-double) parameter `style`
- Method [OfficeTextMeasurer.MeasureWidth](/api/core/officeimo-drawing-officetextmeasurer/#method-measurewidth-string-officeimo-drawing-officetextmeasurementstyle) parameter `style`
- Method [OfficeTextMeasurer.MeasureWidthOrDefault](/api/core/officeimo-drawing-officetextmeasurer/#method-measurewidthordefault-string-officeimo-drawing-officetextmeasurementstyle-double) parameter `style`

Filter members 

Show inherited

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from ValueType

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

`public OfficeFontInfo FontInfo { get; }` [#](#property-fontinfo)

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

Normalized font descriptor used for this measurement style.

`public double Dpi { get; }` [#](#property-dpi)

[OfficeTextMeasurementStyle.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextMeasurementStyle.cs#L23)

Measurement DPI.

`public double FontSizePixels { get; }` [#](#property-fontsizepixels)

[OfficeTextMeasurementStyle.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextMeasurementStyle.cs#L26)

Font size converted to pixels for the selected DPI.

`public double SpaceWidthPixels { get; }` [#](#property-spacewidthpixels)

[OfficeTextMeasurementStyle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextMeasurementStyle.cs#L29)

Estimated width of a space character in pixels.

`public double MaximumDigitWidthPixels { get; }` [#](#property-maximumdigitwidthpixels)

[OfficeTextMeasurementStyle.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextMeasurementStyle.cs#L32)

Estimated maximum digit width in pixels.

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