# OfficeTextMetrics

Deterministic text measurement result in pixels.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

Deterministic text measurement result in pixels.

## Inheritance

- ValueType
- OfficeTextMetrics

## Usage

Explore 1 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 1

- Method [OfficeTextMeasurer.Measure](/api/core/officeimo-drawing-officetextmeasurer/#method-measure-string-officeimo-drawing-officetextmeasurementstyle)

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 double WidthPixels { get; }` [#](#property-widthpixels)

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

Estimated text width in pixels.

`public double LineHeightPixels { get; }` [#](#property-lineheightpixels)

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

Estimated single-line height in pixels.

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

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

Estimated width of a space character in pixels.

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

[OfficeTextMetrics.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextMetrics.cs#L24)

Estimated maximum digit width in pixels.

<!-- PowerForge markdown artifact sha256:59B443975EF48EC32860662564DA9C86097B3FCCE885E14F045CCFDD975B34A8 -->
