Microsoft DirectX 9.0

AMTimelineComp.GetCountOfType Method

The GetCountOfType method retrieves the number of objects of a given type contained in this composition and all its virtual tracks, recursively.

Syntax

object.GetCountOfType(
    pVal As Long,
    pValWithComps As Long,
    MajorType As TIMELINE_MAJOR_TYPE
)

Parameters

pVal

Variable that receives the number of objects of the specified type contained in this composition and all its virtual tracks, recursively.

pValWithComps

Variable that receives the count returned in pVal plus the number of compositions searched, including this one.

MajorType

Member of the TIMELINE_MAJOR_TYPE enumerated type, specifying the type of object to count.

Error Codes

If the method fails, an error is raised.

Remarks

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.

See Also