IDWriteTextLayout2.GetMetrics

<summary> GetMetrics retrieves overall metrics for the formatted string. </summary> <param name="textMetrics">The returned metrics.</param> <returns> Standard HRESULT error code. </returns> <remarks> Drawing effects like underline and strikethrough do not contribute to the text size, which is essentially the sum of advance widths and line heights. Additionally, visible swashes and other graphic adornments may extend outside the returned width and height. </remarks>

interface IDWriteTextLayout2
HRESULT
GetMetrics

Meta