IUIX_Obj::CalcStringSize Method
From PDF XChange PDF SDK
(Automatic page editing by robot) |
|||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_Obj::CalcStringSize Method}} | {{#customTitle:IUIX_Obj::CalcStringSize Method}} | ||
+ | {{#parentPage:PXV:IUIX_Obj#Methods|CalcStringSize|method}} | ||
+ | {{ToReview}} | ||
− | + | Calculates size in points for the given string. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT CalcStringSize([in] LPWSTR pString, [in] LONG nLength, [in] IUIX_Font* pFont, [in, out] SIZE* pSize, [in, | + | <pre class="brush:cpp;gutter:false">HRESULT CalcStringSize([in] LPWSTR pString, |
+ | [in] LONG nLength, | ||
+ | [in] IUIX_Font* pFont, | ||
+ | [in, out] SIZE* pSize, | ||
+ | [in, defaultvalue(0)] LONG nFlags);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;pString |
− | :[in] Value of LPWSTR. | + | :[in] Value of LPWSTR containing the string with text. |
− | ; | + | ;nLength |
− | :[in] Value of LONG. | + | :[in] Value of LONG containing the length of the string. |
− | ; | + | ;pFont |
− | :[in] Pointer to [[PXV:IUIX_Font|IUIX_Font]]. | + | :[in] Pointer to [[PXV:IUIX_Font|IUIX_Font]] containing a font that is being used. |
− | ; | + | ;pSize |
− | :[in, out] Pointer to SIZE. | + | :[in, out] Pointer to SIZE containing the resulting string size. |
− | ; | + | ;nFlags |
− | :[in, | + | :[in, defaultvalue(0)] Value of LONG containing the [[PXV:UIX_DrawStringFlags|draw string flags]]. |
== Return Value == | == Return Value == | ||
Line 23: | Line 30: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IUIX_Obj|IUIX_Obj]] |
Latest revision as of 07:56, 26 May 2017
Calculates size in points for the given string.
Syntax
HRESULT CalcStringSize([in] LPWSTR pString, [in] LONG nLength, [in] IUIX_Font* pFont, [in, out] SIZE* pSize, [in, defaultvalue(0)] LONG nFlags);
Parameters
- pString
- [in] Value of LPWSTR containing the string with text.
- nLength
- [in] Value of LONG containing the length of the string.
- pFont
- [in] Pointer to IUIX_Font containing a font that is being used.
- pSize
- [in, out] Pointer to SIZE containing the resulting string size.
- nFlags
- [in, defaultvalue(0)] Value of LONG containing the draw string flags.
Return Value
Returns S_OK if operation was successful or error code in other cases.