STK ObjectsSend comments on this topic.
RemoveTracksById Method (IAgMtoTrackCollection)
See Also
TrackIds
Windows





Windows & Linux

Description

Removes tracks based on the provided Ids.

Syntax

[Visual Basic .NET]
Public Sub RemoveTracksById( _
    ByVal TrackIds As System.Array _
)
[C#]
public void RemoveTracksById(
    System.Array TrackIds
);
[Managed C++]
public: void RemoveTracksById(
    System::Array ^ TrackIds
);
[Unmanaged C++]
public: HRESULT RemoveTracksById(
    SAFEARRAY * * TrackIds
);
[Java]
public void removeTracksById(
    AgSafeArray TrackIds
);
[Python - STK API ]
def RemoveTracksById(self, TrackIds:list) -> None:

Parameters

TrackIds

See Also

Example

Remove MTO tracks by ids
[C#]
IAgMtoTrackCollection trackCollection = mto.Tracks;

// RemoveTracksById expects a one dimensional array of mto track ids
Array tracks = new object[]
               {
                   1, 4
               };
trackCollection.RemoveTracksById(ref tracks);
Remove MTO tracks by ids
[Visual Basic .NET]
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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.