Skip to content

Latest commit

 

History

History
135 lines (87 loc) · 6.36 KB

nf-gdiplusgraphics-graphics-measurestring(constwchar_int_constfont_constsizef__conststringformat_sizef_int_int).md

File metadata and controls

135 lines (87 loc) · 6.36 KB
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)
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
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
gdiplusgraphics/Graphics::MeasureString
c++
APIRef
kbSyntax
COM
Gdiplus.dll
Graphics.MeasureString

Graphics::MeasureString(IN const WCHAR,IN INT,IN const Font,IN const SizeF &,IN const StringFormat,OUT SizeF,OUT INT,OUT INT)

-description

The Graphics::MeasureString method measures the extent of the string in the specified font, format, and layout rectangle.

-parameters

-param string [in]

Type: const WCHAR*

Pointer to a wide-character string to be measured.

Important  For bidirectional languages, such as Arabic, the string length must not exceed 2046 characters.
 

-param length [in]

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.

-param font [in]

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.

-param layoutRectSize [in, ref]

Type: const SizeF

Reference to a SizeF object that specifies the width and height of a rectangle that bounds the string.

-param stringFormat [in]

Type: const StringFormat*

Pointer to a StringFormat object that specifies the layout information, such as alignment, trimming, tab stops, and so forth.

-param size [out]

Type: SizeF*

Pointer to a SizeF object that receives the width and height of the rectangle that bounds the string.

-param codepointsFitted [out]

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.

-param linesFilled [out]

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.

-returns

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.

-see-also

DrawString Methods

Font

Graphics

RectF

StringFormat