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






Windows & Linux

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
Dim tracks As Array = New Object() {1, 4}
trackCollection.RemoveTracksById(tracks)

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.