IUIX_Obj::CalcStringSize Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(4 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|CalcStringSize | + | {{#parentPage:PXV:IUIX_Obj#Methods|CalcStringSize|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Calculates size in points for the given string. | |
== Syntax == | == Syntax == | ||
Line 16: | Line 16: | ||
== Parameters == | == Parameters == | ||
;pString | ;pString | ||
− | :[in] Value of LPWSTR. | + | :[in] Value of LPWSTR containing the string with text. |
;nLength | ;nLength | ||
− | :[in] Value of LONG. | + | :[in] Value of LONG containing the length of the string. |
;pFont | ;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 | ;pSize | ||
− | :[in, out] Pointer to SIZE. | + | :[in, out] Pointer to SIZE containing the resulting string size. |
;nFlags | ;nFlags | ||
− | :[in, defaultvalue(0)] Value of LONG. | + | :[in, defaultvalue(0)] Value of LONG containing the [[PXV:UIX_DrawStringFlags|draw string flags]]. |
== Return Value == | == Return Value == | ||
Line 30: | 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.