Developer

API Reference

ITRIGMLELEMENT_Clone()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
Brew Release
Brew MP 1.0.2
Description
Creates and returns a copy of a Trigml element.
All attributes and their unresolved values are copied to the new element. Event handlers (including the default event handlers) and the attached object are not copied; instead, the loaded extensions recieve calls to ITRIGMLEXTENSION_ElementCreated() so that they can create them. The new element is not a member of the DOM tree - it has no parent or siblings.
Parameters
  • po
    []:
    A pointer to an ITrigmlElement object.
  • ppClone
    []:
    On successful return, *ppClone is a pointer to the new clone of the original element. You should call ITRIGMLELEMENT_Release() when you are finished with it.
  • pParent
    []:
    Optional, a pointer to the ITrigmlElement into which the cloned element will be inserted, if NULL the cloned element won't be inserted.
Interface
ITRIGMLELEMENT
Prototype
   ITRIGMLELEMENT_Clone(ITrigmlElement* po, ITrigmlElement** ppClone, 
                        ITrigmlElement * pParent);
Return
   SUCCESS if the element was successfully cloned.
Side Effect
All loaded extensions receive a call to ITRIGMLEXTENSION_ElementCreated().
Comment
None
  • Follow