|Microsoft DirectX 9.0|
The GetCountOfType method retrieves the number of objects of a given type contained in this composition and all its virtual tracks, recursively.
object.GetCountOfType( pVal As Long, pValWithComps As Long, MajorType As TIMELINE_MAJOR_TYPE )
Variable that receives the number of objects of the specified type contained in this composition and all its virtual tracks, recursively.
Variable that receives the count returned in pVal plus the number of compositions searched, including this one.
Member of the TIMELINE_MAJOR_TYPE enumerated type, specifying the type of object to count.
If the method fails, an error is raised.
Typically, an application will not call this method. It is called by the render engine.
If you count compositions, the value returned in pVal is zero and the value returned in pValWithComps is the number of compositions. The value of pValWithComps includes the composition on which you call the method. For example, if you call this method on an empty composition, pValWithComps equals 1.
Groups cannot reside inside compositions, so you cannot use this method to count groups (the returned count will always be zero). To count groups, call the AMTimeline.GetGroupCount method.