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





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

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1