API Component.Clone: Difference between revisions
Appearance
XML import API auto-gen |
XML import |
||
| Line 2: | Line 2: | ||
Clones an existing object to another position on the panel | Clones an existing object to another position on the panel | ||
<div style="width:25%; float:right" class="toc"> | |||
===Class hierarchy=== | |||
:Component | |||
::Clone | |||
</div> | |||
__TOC__ | |||
==Parameters== | |||
''[[Variable types|HANDLE]] Source'' | ''[[Variable types|HANDLE]] Source'' | ||
:The object to copy | :The object to copy | ||
| Line 13: | Line 19: | ||
:A position to move the object to | :A position to move the object to | ||
==Return value== | |||
[[Variable types|HANDLE]] | [[Variable types|HANDLE]] | ||
No additional information | No additional information | ||
==Detailed description== | |||
''No additional information'' | ''No additional information'' | ||
==Examples== | |||
===Calling in a calculation=== | |||
* Declare a variable 'result' of type HANDLE | * Declare a variable 'result' of type HANDLE | ||
* Add to a calculation icon: <pre class="brush:[ | * Add to a calculation icon: <pre class="brush:[cpp]">result = ::Component.Clone(source, destparent, newposition)</pre> | ||
Revision as of 16:01, 11 May 2013
<sidebar>API contents</sidebar> Clones an existing object to another position on the panel
Class hierarchy
- Component
- Clone
Parameters
HANDLE Source
- The object to copy
HANDLE DestParent
- The parent to link the cloned object to
HANDLE NewPosition
- A position to move the object to
Return value
No additional information
Detailed description
No additional information
Examples
Calling in a calculation
- Declare a variable 'result' of type HANDLE
- Add to a calculation icon:
result = ::Component.Clone(source, destparent, newposition)