IPXC_ContentCreator::CalcTextSize Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IPXC_ContentCreator::CalcTextSize Method}} | {{#customTitle:IPXC_ContentCreator::CalcTextSize Method}} | ||
− | {{#parentPage:PXV:IPXC_ContentCreator|method | + | {{#parentPage:PXV:IPXC_ContentCreator#Methods|CalcTextSize|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Calculates the resulting text size based on the font size. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT CalcTextSize([in] double nFontSize, [in] LPWSTR pText, [out] double* pWidth, [out] double* pHeight, [in, defaultvalue(-1)] LONG nTextLen);</pre> | + | <pre class="brush:cpp;gutter:false">HRESULT CalcTextSize([in] double nFontSize, |
+ | [in] LPWSTR pText, | ||
+ | [out] double* pWidth, | ||
+ | [out] double* pHeight, | ||
+ | [in, defaultvalue(-1)] LONG nTextLen);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;nFontSize |
− | :[in] Value of double. | + | :[in] Value of double containing the font size. |
− | ; | + | ;pText |
− | :[in] Value of LPWSTR. | + | :[in] Value of LPWSTR containing the text which size should be calculated. |
− | ; | + | ;pWidth |
− | :[out] Pointer to double. | + | :[out] Pointer to double containing the width of the text string. |
− | ; | + | ;pHeight |
− | :[out] Pointer to double. | + | :[out] Pointer to double containing the height of the text string. |
− | ; | + | ;nTextLen |
− | :[in, defaultvalue(-1)] Value of LONG. | + | :[in, defaultvalue(-1)] Value of LONG containing the text's length. |
== Return Value == | == Return Value == | ||
Line 26: | Line 30: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IPXC_ContentCreator|IPXC_ContentCreator]] |
Latest revision as of 22:41, 4 July 2016
Calculates the resulting text size based on the font size.
Syntax
HRESULT CalcTextSize([in] double nFontSize, [in] LPWSTR pText, [out] double* pWidth, [out] double* pHeight, [in, defaultvalue(-1)] LONG nTextLen);
Parameters
- nFontSize
- [in] Value of double containing the font size.
- pText
- [in] Value of LPWSTR containing the text which size should be calculated.
- pWidth
- [out] Pointer to double containing the width of the text string.
- pHeight
- [out] Pointer to double containing the height of the text string.
- nTextLen
- [in, defaultvalue(-1)] Value of LONG containing the text's length.
Return Value
Returns S_OK if operation was successful or error code in other cases.