UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | req.product | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:gdiplusgraphics.Graphics.MeasureString(constWCHAR,INT,constFont,constSizeF&,constStringFormat,SizeF,INT,INT) |
Graphics::MeasureString(IN const WCHAR,IN INT,IN const Font,IN const SizeF &,IN const StringFormat,OUT SizeF,OUT INT,OUT INT) (gdiplusgraphics.h) |
The Graphics::MeasureString method measures the extent of the string in the specified font, format, and layout rectangle. (overload 1/3) |
|
gdiplus\_gdiplus_CLASS_Graphics_MeasureString_string_length_font_layoutRectSize_stringFormat_size_codepoints.htm |
gdiplus |
VS|gdicpp|~\gdiplus\gdiplusreference\classes\graphicsclass\graphicsmethods\graphicsmeasurestringmethods\measurestring_56string_length_font_layoutrectsize_stri.htm |
12/05/2018 |
Graphics class [GDI+],MeasureString method, Graphics.MeasureString, Graphics.MeasureString(IN const WCHAR,IN INT,IN const Font,IN const SizeF &,IN const StringFormat,OUT SizeF,OUT INT,OUT INT), Graphics.MeasureString(const WCHAR*,INT,const Font*,const SizeF&,const StringFormat*,SizeF*,INT*,INT*), Graphics::MeasureString, Graphics::MeasureString(IN const WCHAR,IN INT,IN const Font,IN const SizeF &,IN const StringFormat,OUT SizeF,OUT INT,OUT INT), MeasureString, MeasureString method [GDI+], MeasureString method [GDI+],Graphics class, _gdiplus_CLASS_Graphics_MeasureString_string_length_font_layoutRectSize_stringFormat_size_codepoints, gdiplus._gdiplus_CLASS_Graphics_MeasureString_string_length_font_layoutRectSize_stringFormat_size_codepoints |
gdiplusgraphics.h |
Gdiplus.h |
Windows |
Windows XP, Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Gdiplus.lib |
Gdiplus.dll |
Windows |
GDI+ 1.0 |
19H1 |
|
|
|
|
|
|
Graphics::MeasureString(IN const WCHAR,IN INT,IN const Font,IN const SizeF &,IN const StringFormat,OUT SizeF,OUT INT,OUT INT)
The Graphics::MeasureString method measures the extent of the string in the specified font, format, and layout rectangle.
Type: const WCHAR*
Pointer to a wide-character string to be measured.
Type: INT
Integer that specifies the number of characters in the string array. The length parameter can be set to –1 if the string is null terminated.
Type: const Font*
Pointer to a Font object that specifies the family name, size, and style of the font that is applied to the string.
Type: const SizeF
Reference to a SizeF object that specifies the width and height of a rectangle that bounds the string.
Type: const StringFormat*
Pointer to a StringFormat object that specifies the layout information, such as alignment, trimming, tab stops, and so forth.
Type: SizeF*
Pointer to a SizeF object that receives the width and height of the rectangle that bounds the string.
Type: INT*
Optional. Pointer to an INT that receives the number of characters that actually fit into the layout rectangle. The default value is a NULL pointer.
Type: INT*
Optional. Pointer to an INT that receives the number of lines that actually fit into the layout rectangle. The default value is a NULL pointer.
Type: Status
If the method succeeds, it returns OK, which is an element of the Status enumeration.
If the method fails, it returns one of the other elements of the Status enumeration.