AGI STK Objects 11 Send comments on this topic.
Remove Method (IAgMtoTrackCollection)
See Also  Example
pTrack





Description

Removes an element from the collection using a specified track.

Syntax

[Visual Basic .NET]
Public Sub Remove( _
   ByVal pTrack As IAgMtoTrack _
) 

[C#]
public void Remove(
IAgMtoTrack pTrack
);

[Managed C++]
public: void Remove(
IAgMtoTrack ^ pTrack
);

[Java]
public  remove(
IAgMtoTrack pTrack
);

[Unmanaged C++]
public: HRESULT Remove(
IAgMtoTrack * pTrack
);

Parameters

pTrack

Example

Remove MTO track
[C#] Copy Code
IAgMtoTrackCollection trackCollection = mto.Tracks; 
 
// Build tracksToRemove Array 
Array tracksToRemove = new object[] 
                       { 
                           trackCollection[0], trackCollection[1
                       }; 
 
// RemoveTracks expects a one dimensional array of IAgMtoTrack objects 
trackCollection.RemoveTracks(ref tracksToRemove); 
 

Remove MTO track
[Visual Basic .NET] Copy Code
Dim trackCollection As IAgMtoTrackCollection = mto.Tracks

' Build tracksToRemove Array
#If Not CSToJava Then
#Else
#End If
Dim tracksToRemove As Array = New Object() {trackCollection(0), trackCollection(1)}

' RemoveTracks expects a one dimensional array of IAgMtoTrack objects
#If Not CSToJava Then
trackCollection.RemoveTracks(tracksToRemove)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1