Movie Maker Timeline Control

ChangeTransition Method

Description

Change the transition on the timeline.

Syntax

Public Function ChangeTransition( _
   ByVal trackIndex as integer, _
   ByVal transitionIndex as integer, _
   ByVal name as string, _
   ByVal StartTime as float, _
   ByVal StopTime as float, _
   ByVal params as string, _
   ByVal mediaTrackIndex as integer, _
   ByVal reverseDirection as bool
) As Integer

 

Parameter

trackIndex
   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

transitionIndex
    the index of transition clip for changed

name
    the name of transition

StartTime
    Time in seconds when the clip will start on the timeline

StopTime
    Time in seconds when the clip will end on the timeline.

Return Value

Return 1 if successful.
Return -1 , the name of transition is empty.
Return -3 , the StartTime >= StopTime.
Return -4 , the track not found.
Return -5 , the unknown error.
Return -6 , the transition clip not found.

Example

Visual Basic Syntax
iResult= TimelineControl1.ChangeTransition(0, 0,"CheckerBoard", 0, 30, "",2, true)