AGI STK Objects 11Send comments on this topic.
DuplicateComponent Method (IAgComponentInfoCollection)
See Also 
IndexOrComponentName
NewComponentName
Windows






Windows & Linux

Description

Duplicates and adds the component, with the supplied name or index, to the collection and then returns the duplicated component.

Syntax

[Visual Basic .NET]
Public Function DuplicateComponent( _
   ByVal IndexOrComponentName As System.Object, _
   ByVal NewComponentName As String _
) As IAgComponentInfo
[C#]
public IAgComponentInfo DuplicateComponent(
   System.Object IndexOrComponentName,
   string NewComponentName
);
[Managed C++]
public: IAgComponentInfo^ DuplicateComponent(
   VARIANT IndexOrComponentName,
   String __gc ^ NewComponentName
);
[Java]
public IAgComponentInfo duplicateComponent(
   Variant IndexOrComponentName,
   String NewComponentName
);
[Unmanaged C++]
public: HRESULT DuplicateComponent(
   VARIANT IndexOrComponentName,
   BSTR NewComponentName,
   IAgComponentInfo ** ReturnValue
);

Parameters

IndexOrComponentName
NewComponentName

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.