IPXS_PDFVariant::Clone Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(6 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXS_PDFVariant::Clone Method}}
 
{{#customTitle:IPXS_PDFVariant::Clone Method}}
{{#parentPage:PXV:IPXS_PDFVariant#Methods|Clone Method|method}}
+
{{#parentPage:PXV:IPXS_PDFVariant#Methods|Clone|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
This method create and return clone of current variant. If current variant is indirect no clone is created <code>pClone</code> will receive pointer to current variant. To clone indirect variant content to another one please use [[PXV:IPXS_PDFVariant_CopyFrom|CopyFrom]] function.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT Clone([out, retval]  IPXS_PDFVariant**  ppClone);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT Clone([out, retval]  IPXS_PDFVariant**  pClone);</pre>
  
 
== Parameters ==
 
== Parameters ==
;ppClone
+
;pClone
:[out, retval] Pointer to [[PXV:IPXS_PDFVariant|IPXS_PDFVariant]].
+
:[out, retval] Pointer to the variable where the [[PXV:IPXS_PDFVariant|IPXS_PDFVariant]] pointer of the cloned variant will be stored.
 
+
 
== Return Value ==
 
== Return Value ==
 
Returns S_OK if operation was successful or error code in other cases.
 
Returns S_OK if operation was successful or error code in other cases.
  
 
== See Also ==
 
== See Also ==
[[PXV:IPXS_PDFVariant|IPXS_PDFVariant]].
+
[[PXV:IPXS_PDFVariant|IPXS_PDFVariant]]

Latest revision as of 08:21, 21 August 2015


This method create and return clone of current variant. If current variant is indirect no clone is created pClone will receive pointer to current variant. To clone indirect variant content to another one please use CopyFrom function.

Syntax

HRESULT Clone([out, retval]  IPXS_PDFVariant**  pClone);

Parameters

pClone
[out, retval] Pointer to the variable where the IPXS_PDFVariant pointer of the cloned variant will be stored.

Return Value

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

See Also

IPXS_PDFVariant