The QTPlgMediaText class defines a that describes text samples. This class inplements properties and methods that allows you to deal with characteristics peculiar to text samples.
→ →
The QTPlgMediaText class constructors are called when you create a new instance of the class, while the ˜QTPlgMediaText class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil. You can not create a QTPlgMediaText object by yourself; instead, you will use class instances obtained from objects of appropriate type.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. See the validity requirements for more details.
The class provides you with the following initializer methods:
(other as QTPlgMediaText)
This is the copy constructor. The properties of the object to be copied will be used to initialize the
new class instance properties
provides detailed informations about the stored text sample data
provides detailed informations about the stored text sample data; returns a list of
objects
(text as string, caseSensitive as boolean, wrap as boolean,
[start as integer])
as
use this method to search for the text specified within the media starting at a given time specified by the optional
start parameter; if you do not specify a start time, the method, by default, start the search at the beginning of the media track.
You can establish a case sensitive search by setting the caseSensitive parameter and if to wrap search when beginning or end of track
is hit by the wrap parameter
(text as string, replacingText as string, caseSensitive as boolean,
wrap as boolean, [start as integer])
as
use this method to search the text specified and replace it with the alternate text indicated by the
replacingText parameter; the search will start at the time given by the optional
start parameter; if you do not specify a start time, the method, by default, start the search at the beginning of the media track.
You can establish a case sensitive search by setting the caseSensitive parameter and if to wrap search when beginning or end of track
is hit by the wrap parameter
(text as string, hiliteColor as color, [start as integer])
as
use this method to search for the text specified within the media starting at a given time specified by the optional
start parameter; if you do not specify a start time, the method, by default, start the search at the beginning of the media track.
If the text has been found, it will be selected and highlighted with the color specified by the hiliteColor parameter