TextMetrics Struct
The dimensions of a line of text.
public readonly struct TextMetrics : IEquatable<TextMetrics>- Implements
Constructors
| Name | Description |
|---|---|
| TextMetrics(double, double, double) | The dimensions of a line of text. |
TextMetrics(double, double, double)
The dimensions of a line of text.
Properties
| Name | Description |
|---|---|
| Ascent | The distance from the baseline to the top of the line, positive. |
| Descent | The distance from the baseline to the bottom of the line, positive. |
| Height | Gets the height of the line, TextMetrics.Ascent plus TextMetrics.Descent. |
| Width | The advance width of the text. |
Ascent
TextMetrics.csDescent
TextMetrics.csHeight
TextMetrics.csGets the height of the line, TextMetrics.Ascent plus TextMetrics.Descent.
public double Height { get; }Property value
Width
TextMetrics.csMethods
| Name | Description |
|---|---|
| Deconstruct(double, double, double) | |
| Equals(TextMetrics) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(double, double, double)
Equals overloads
Equals(TextMetrics)
public bool Equals(TextMetrics other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(TextMetrics, TextMetrics) | |
| operator !=(TextMetrics, TextMetrics) |
operator ==(TextMetrics, TextMetrics)
public static bool operator ==(TextMetrics left, TextMetrics right)No documentation is available.
operator !=(TextMetrics, TextMetrics)
public static bool operator !=(TextMetrics left, TextMetrics right)No documentation is available.