|Microsoft DirectX 9.0|
The GetCountOfType method retrieves the number of objects of the specified type that are contained in a specified group and all of its children.
object.GetCountOfType( Group As Long, pVal As Long, pValWithComps As Long, MajorType As TIMELINE_MAJOR_TYPE )
Index number of the group for which to retrieve the count.
Variable that receives the number of objects of the specified type contained in the group and all of 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, and Err.Number can be set to the following value:
|E_INVALIDARG||Invalid group number.|
Calling this method is equivalent to calling AMTimelineComp.GetCountOfType on the specified group. See the Remarks section of that method for more information.
Typically, an application will not call this method. It is called internally by the render engine.