IPXC_ContentCreator::CalcTextSize Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 1: Line 1:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXC_ContentCreator::CalcTextSize Method}}
 
{{#customTitle:IPXC_ContentCreator::CalcTextSize Method}}
{{#parentPage:PXV:IPXC_ContentCreator|method}}
+
{{#parentPage:PXV:IPXC_ContentCreator|CalcTextSize Method|method}}
 
{{ToWrite}}
 
{{ToWrite}}
 
{{ToReview}}
 
{{ToReview}}
Line 8: Line 8:
  
 
== 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''
+
;nFontSize
 
:[in]  Value of double.
 
:[in]  Value of double.
;''pText''
+
;pText
 
:[in]  Value of LPWSTR.
 
:[in]  Value of LPWSTR.
;''pWidth''
+
;pWidth
 
:[out]  Pointer to double.
 
:[out]  Pointer to double.
;''pHeight''
+
;pHeight
 
:[out]  Pointer to double.
 
:[out]  Pointer to double.
;''nTextLen''
+
;nTextLen
 
:[in, defaultvalue(-1)]  Value of LONG.
 
:[in, defaultvalue(-1)]  Value of LONG.
  

Revision as of 05:59, 23 April 2015


The method of interface of PDF-XChange Editor SDK.

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.
pText
[in] Value of LPWSTR.
pWidth
[out] Pointer to double.
pHeight
[out] Pointer to double.
nTextLen
[in, defaultvalue(-1)] Value of LONG.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

See also IPXC_ContentCreator.