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





Description

Removes tracks based on the provided Ids.

Syntax

[Visual Basic .NET]
Public Sub RemoveTracksById( _
   ByRef TrackIds As System.Array _
) 

[C#]
public void RemoveTracksById(
ref System.Array TrackIds
);

[Managed C++]
public: void RemoveTracksById(
System::Array ^^ TrackIds
);

[Java]
public  removeTracksById(
Object[] TrackIds
);

[Unmanaged C++]
public: HRESULT RemoveTracksById(
SAFEARRAY ** TrackIds
);

Parameters

TrackIds

Example

Remove MTO tracks by ids
[C#] Copy Code
IAgMtoTrackCollection trackCollection = mto.Tracks; 
 
// RemoveTracksById expects a one dimensional array of mto track ids 
Array tracks = new object[] 
               { 
                   14 
               }; 
trackCollection.RemoveTracksById(ref tracks); 
 

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

' RemoveTracksById expects a one dimensional array of mto track ids
#If Not CSToJava Then
#Else
#End If
Dim tracks As Array = New Object() {1, 4}
#If Not CSToJava Then
trackCollection.RemoveTracksById(tracks)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1