Movie Maker Timeline Control

GetClipCount Method

Description

Get the count of clip on specific track.

Syntax

Public Function GetClipCount( _
   ByVal trackIndex as integer, _
  ) as integer

 

Parameter

trackIndex
   the index of track.

   0 - Transition Track
   1 - Video 1 Track
   2 - Video 2 Track
   3 - Image Track
   4 - Effect Track
   5 - Audio 1 Track
   6 - Audio 2 Track
   7 - Text Track


Return Value

    return the total count of the clips on specific track

 

Example

Visual Basic Syntax
 iTotalVideoClips = TimelineControl1.GetClipCount(TimelineControl1.GetVideo1TrackIndex())