Movie Maker Timeline Control

GetTextClip2 Method

Description

Get text clip information. Get text clip information. (for VB6 or another development tools does not support color data type)

Syntax

Public Function GetTextClip2 ( _
   ByVal trackIndex as integer, _
   ByVal clipIndex as integer, _
   ByVal text as string, _
   ByVal clipStartTime as float, _
   ByVal clipStopTime as float, _
   ByVal font as integer, _
   ByVal x as integer, _
   ByVal y as integer, _
   ByVal red as integer, _
   ByVal green as integer, _
   ByVal blue 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

clipIndex
    the index of text clip

text
    return the string of the text

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

font
    return the font handle.
 
x
    return the logical x-coordinate of the starting point of the text.

y
    return the logical y-coordinate of the starting point of the text.

red
    The color value with red component of text color (0-255).

green
    The color value with green component of text color (0-255).

blue
    The color value with blue component of text color (0-255).

Return Value

text
    return the string of the text

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

font
    return the font handle.
 
x
    return the logical x-coordinate of the starting point of the text.

y
    return the logical y-coordinate of the starting point of the text.

red
    The color value with red component of text color (0-255).

green
    The color value with green component of text color (0-255).

blue
    The color value with blue component of text color (0-255).

Example

Visual Basic Syntax
 TimelineControl1.GetTextClip2 7, 0, strText, iclipStart, iclipStop, iFont, iTextX, iTextY, iRed, iGreen, iBlue