AGI STK VGT 11 Send comments on this topic.
EmbeddedComponents Property (IAgCrdn)
See Also  Example





Description

Returns a collection of embedded components.

Property type

Read-only property

Syntax

[Visual Basic .NET]
Public Property EmbeddedComponents() As IAgCrdnCollection

[C#]
public IAgCrdnCollection EmbeddedComponents {get;}

[Managed C++]
public: __property IAgCrdnCollection^ get_EmbeddedComponents();

[Unmanaged C++]
public: HRESULT get_EmbeddedComponents(
IAgCrdnCollection ** ppRetVal
);

[Java]
public IAgCrdnCollection getEmbeddedComponents();

Example

Get an embedded component
[C#] Copy Code
if (crdn.EmbeddedComponents.Contains("Origin")) 

    IAgCrdn embeddedComponent = crdn.EmbeddedComponents["Origin"]; 

 

Enumerate all embedded components of a VGT component
[C#] Copy Code
foreach (IAgCrdn embeddedComponent in crdn.EmbeddedComponents) 

    Console.WriteLine("Name: {0}, kind: {1}", embeddedComponent.Name, embeddedComponent.Kind); 

 

Iterate all embedded components of a VGT component
[C#] Copy Code
for (int i = 0; i < crdn.EmbeddedComponents.Count; i++) 

    IAgCrdn embeddedComponent = crdn.EmbeddedComponents[i]; 
    Console.WriteLine("Name: {0}, kind: {1}", embeddedComponent.Name, embeddedComponent.Kind); 

 

Get an embedded component
[Visual Basic .NET] Copy Code
If crdn.EmbeddedComponents.Contains("Origin") Then
    Dim embeddedComponent As IAgCrdn = crdn.EmbeddedComponents("Origin")
End If

Enumerate all embedded components of a VGT component
[Visual Basic .NET] Copy Code
For Each embeddedComponent As IAgCrdn In crdn.EmbeddedComponents
    Console.WriteLine("Name: {0}, kind: {1}", embeddedComponent.Name, embeddedComponent.Kind)
Next

Iterate all embedded components of a VGT component
[Visual Basic .NET] Copy Code
Dim i As Integer = 0
While i < crdn.EmbeddedComponents.Count
    Dim embeddedComponent As IAgCrdn = crdn.EmbeddedComponents(i)
    Console.WriteLine("Name: {0}, kind: {1}", embeddedComponent.Name, embeddedComponent.Kind)
    System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1)
End While

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1