# TextMetrics

Describes measured text dimensions. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Struct  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

[TextLayoutModels.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L31)

**Base**

`ValueType`

**Modifiers**

sealed

Describes measured text dimensions.

## Inheritance

- ValueType
- TextMetrics

## Usage

 Explore 3 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 [LabelPlacementService.Measure](/api/chartforgex-rendering-labelplacementservice/#method-measure-string-chartforgex-typography-textstyle)
- Property [TextLayout.Metrics](/api/chartforgex-typography-textlayout/#property-metrics)
- Method [TextLayoutEngine.Measure](/api/chartforgex-typography-textlayoutengine/#method-measure-chartforgex-typography-textcontent-chartforgex-typography-textstyle)

 Filter members   

    Show inherited   

 

## Constructors

 `public TextMetrics(double width, double height, double lineHeight)` [#](#constructor-ctor-double-double-double) 

[TextLayoutModels.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L31)

Initializes measured text dimensions.

Parameters

**width double required**

**height double required**

**lineHeight double required**

## 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 Width { get; }` [#](#property-width) 

[TextLayoutModels.cs:37](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L37)

Gets the measured width.

 `public double Height { get; }` [#](#property-height) 

[TextLayoutModels.cs:40](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L40)

Gets the measured height.

 `public double LineHeight { get; }` [#](#property-lineheight) 

[TextLayoutModels.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L43)

Gets the resolved line height.

<!-- PowerForge markdown artifact sha256:39F88B58EE561EA9EB47981B3C31B146DCE1D968883ABF37339E42CED1264A59 -->
