Table of Contents

Method GetTextExtent

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetTextExtent(SKCanvas, string, Font)

Gets text size.

public static SizeD GetTextExtent(this SKCanvas canvas, string text, Font font)

Parameters

canvas SKCanvas

Drawing context.

text string

Text to measure.

font Font

Font.

Returns

SizeD