ICabNode::Copy Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:ICabNode::Copy Method}}
 
{{#customTitle:ICabNode::Copy Method}}
{{#parentPage:PXV:ICabNode|method}}
+
{{#parentPage:PXV:ICabNode#Methods|Copy|method}}
 
{{ToWrite}}
 
{{ToWrite}}
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Copies data from another node.
 +
Generally this operation assigns value of the source node to the target node.
 +
The operation has special merge semantics for CAB dictionaries:
 +
subnodes that exist in the target but do not exist in the source, will remain untouched;
 +
subnodes that do not exist in the target but exist in the source, will be added to the target;
 +
and to subnodes that exist both in the target and source, <code>Copy</code> operation will be applied recursively.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT Copy(ICabNode* pSrc);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT Copy( ICabNode* pSrc);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''pSrc''
+
;pSrc
 
: Pointer to [[PXV:ICabNode|ICabNode]].
 
: Pointer to [[PXV:ICabNode|ICabNode]].
 +
Pointer to a source CAB node.
  
 
== Return Value ==
 
== Return Value ==
Line 18: Line 25:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:ICabNode|ICabNode]].
+
[[PXV:ICabNode|ICabNode]]

Latest revision as of 02:12, 15 June 2015


Copies data from another node. Generally this operation assigns value of the source node to the target node. The operation has special merge semantics for CAB dictionaries: subnodes that exist in the target but do not exist in the source, will remain untouched; subnodes that do not exist in the target but exist in the source, will be added to the target; and to subnodes that exist both in the target and source, Copy operation will be applied recursively.

Syntax

HRESULT Copy(  ICabNode*  pSrc);

Parameters

pSrc
Pointer to ICabNode.

Pointer to a source CAB node.

Return Value

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

See Also

ICabNode