IPXC_ContentCreator::CalcTextSize Method

From PDF XChange PDF SDK
Jump to: navigation, search
(Automatic page editing by robot)
 
 
(7 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#Methods|CalcTextSize|method}}
 +
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
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, optional] 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''
+
;nFontSize
:[in]  Value of double.
+
:[in]  Value of double containing the font size.
;''pText''
+
;pText
:[in]  Value of LPWSTR.
+
:[in]  Value of LPWSTR containing the text which size should be calculated.
;''pWidth''
+
;pWidth
:[out]  Pointer to double.
+
:[out]  Pointer to double containing the width of the text string.
;''pHeight''
+
;pHeight
:[out]  Pointer to double.
+
:[out]  Pointer to double containing the height of the text string.
;''nTextLen''
+
;nTextLen
:[in, optional]  Value of LONG.
+
:[in, defaultvalue(-1)]  Value of LONG containing the text's length.
  
 
== Return Value ==
 
== Return Value ==
Line 23: Line 30:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IPXC_ContentCreator|IPXC_ContentCreator]].
+
[[PXV:IPXC_ContentCreator|IPXC_ContentCreator]]

Latest revision as of 23: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.

See Also

IPXC_ContentCreator