STK ObjectsSend 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
);
[Unmanaged C++]
public: HRESULT DuplicateComponent(
    VARIANT IndexOrComponentName,
    BSTR NewComponentName,
    IAgComponentInfo ** ppVal
);
[Java]
public IAgComponentInfo duplicateComponent(
    AgVariant IndexOrComponentName,
    String NewComponentName
);
[Python - STK API ]
def DuplicateComponent(self, IndexOrComponentName:typing.Any, NewComponentName:str) -> "IAgComponentInfo":

Parameters

IndexOrComponentName
NewComponentName

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.