IPXC_ContentCreator::ShowTextBlock Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 3: Line 3:
 
{{#customTitle:IPXC_ContentCreator::ShowTextBlock Method}}
 
{{#customTitle:IPXC_ContentCreator::ShowTextBlock Method}}
 
{{#parentPage:PXV:IPXC_ContentCreator#Methods|ShowTextBlock|method}}
 
{{#parentPage:PXV:IPXC_ContentCreator#Methods|ShowTextBlock|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Shows text block in the specified rectangle and calculates the text bounds. If the [[PXV:IPXC_DrawTextCallbacks|callbacks]] are specified then the callback's methods will be used.
  
 
== Syntax ==
 
== Syntax ==
Line 21: Line 20:
 
== Parameters ==
 
== Parameters ==
 
;pText
 
;pText
:[in]  Value of LPWSTR.
+
:[in]  Value of LPWSTR containing the text that needs to be shown.
 
;pRect
 
;pRect
:[in]  Pointer to [[PXV:PXC_Rect|PXC_Rect]].
+
:[in]  Pointer to [[PXV:PXC_Rect|PXC_Rect]] containing the rectangle into which the text will be placed.
 
;pClip
 
;pClip
:[in]  Pointer to [[PXV:PXC_Rect|PXC_Rect]].
+
:[in]  Pointer to [[PXV:PXC_Rect|PXC_Rect]] containing the clip that would be applied to the text. Can be null.
 
;nFlags
 
;nFlags
:[in, defaultvalue(0)]  Value of ULONG.
+
:[in, defaultvalue(0)]  Value of ULONG containing the [[PXV:PXC_DrawTextFlags|draw text flags]].
 
;nTextLen
 
;nTextLen
:[in, defaultvalue(-1)]  Value of LONG.
+
:[in, defaultvalue(-1)]  Value of LONG containing the length of the text.
 
;pCharFmt
 
;pCharFmt
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IPXC_CharFormat|IPXC_CharFormat]].
+
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IPXC_CharFormat|IPXC_CharFormat]] containing the text's custom character format.
 
;pParaFmt
 
;pParaFmt
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IPXC_ParaFormat|IPXC_ParaFormat]].
+
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IPXC_ParaFormat|IPXC_ParaFormat]] containing the text's custom paragraph format.
 
;pCallbacks
 
;pCallbacks
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IPXC_DrawTextCallbacks|IPXC_DrawTextCallbacks]].
+
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IPXC_DrawTextCallbacks|IPXC_DrawTextCallbacks]] containing the callbacks.
 
;pTextBounds
 
;pTextBounds
:[out, defaultvalue(NULL)]  Pointer to [[PXV:PXC_Rect|PXC_Rect]].
+
:[out, defaultvalue(NULL)]  Pointer to [[PXV:PXC_Rect|PXC_Rect]] containing the resulting bound rectangle of the given text.
  
 
== Return Value ==
 
== Return Value ==

Revision as of 23:37, 4 July 2016


Shows text block in the specified rectangle and calculates the text bounds. If the callbacks are specified then the callback's methods will be used.

Syntax

HRESULT ShowTextBlock([in]                       LPWSTR                   pText,
                      [in]                       PXC_Rect*                pRect,
                      [in]                       PXC_Rect*                pClip,
                      [in, defaultvalue(0)]      ULONG                    nFlags,
                      [in, defaultvalue(-1)]     LONG                     nTextLen,
                      [in, defaultvalue(NULL)]   IPXC_CharFormat*         pCharFmt,
                      [in, defaultvalue(NULL)]   IPXC_ParaFormat*         pParaFmt,
                      [in, defaultvalue(NULL)]   IPXC_DrawTextCallbacks*  pCallbacks,
                      [out, defaultvalue(NULL)]  PXC_Rect*                pTextBounds);

Parameters

pText
[in] Value of LPWSTR containing the text that needs to be shown.
pRect
[in] Pointer to PXC_Rect containing the rectangle into which the text will be placed.
pClip
[in] Pointer to PXC_Rect containing the clip that would be applied to the text. Can be null.
nFlags
[in, defaultvalue(0)] Value of ULONG containing the draw text flags.
nTextLen
[in, defaultvalue(-1)] Value of LONG containing the length of the text.
pCharFmt
[in, defaultvalue(NULL)] Pointer to IPXC_CharFormat containing the text's custom character format.
pParaFmt
[in, defaultvalue(NULL)] Pointer to IPXC_ParaFormat containing the text's custom paragraph format.
pCallbacks
[in, defaultvalue(NULL)] Pointer to IPXC_DrawTextCallbacks containing the callbacks.
pTextBounds
[out, defaultvalue(NULL)] Pointer to PXC_Rect containing the resulting bound rectangle of the given text.

Return Value

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

See Also

IPXC_ContentCreator