STK ObjectsSend comments on this topic.
Remove Method (IAgMtoTrackCollection)
See Also
pTrack
Windows





Windows & Linux

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
);
[Unmanaged C++]
public: HRESULT Remove(
    IAgMtoTrack * pTrack
);
[Java]
public void remove(
    IAgMtoTrack pTrack
);
[Python - STK API ]
def Remove(self, pTrack:"IAgMtoTrack") -> None:

Parameters

pTrack

See Also

Example

Remove MTO track
[C#]
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]
Dim trackCollection As IAgMtoTrackCollection = mto.Tracks

' Build tracksToRemove Array
Dim tracksToRemove As Array = New Object() {trackCollection(0), trackCollection(1)}

' RemoveTracks expects a one dimensional array of IAgMtoTrack objects
trackCollection.RemoveTracks(tracksToRemove)
© 2024 Analytical Graphics, Inc. All Rights Reserved.