Прочетете на английски Редактиране

Споделяне чрез


Graphics.MeasureStringInternal Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

C#
public System.Drawing.SizeF MeasureStringInternal(ReadOnlySpan<char> text, System.Drawing.Font font, System.Drawing.RectangleF layoutArea, System.Drawing.StringFormat? stringFormat, out int charactersFitted, out int linesFilled);

Parameters

font
Font
layoutArea
RectangleF
stringFormat
StringFormat
charactersFitted
Int32
linesFilled
Int32

Returns

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10