IPXC_ContentCreator::CalcTextSize Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
Line 3: Line 3:
 
{{#customTitle:IPXC_ContentCreator::CalcTextSize Method}}
 
{{#customTitle:IPXC_ContentCreator::CalcTextSize Method}}
 
{{#parentPage:PXV:IPXC_ContentCreator#Methods|CalcTextSize|method}}
 
{{#parentPage:PXV:IPXC_ContentCreator#Methods|CalcTextSize|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Calculates the resulting text size based on the font size.
  
 
== Syntax ==
 
== Syntax ==
Line 17: Line 16:
 
== 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, defaultvalue(-1)]  Value of LONG.
+
:[in, defaultvalue(-1)]  Value of LONG containing the text's length.
  
 
== Return Value ==
 
== Return Value ==

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