Microsoft DirectX 9.0

AMTimeline.GetCountOfType Method

The GetCountOfType method retrieves the number of objects of the specified type that are contained in a specified group and all of its children.

Syntax

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

Parameters

Group

Index number of the group for which to retrieve the count.

pVal

Variable that receives the number of objects of the specified type contained in the group and all of 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, and Err.Number can be set to the following value:

Value Description
E_INVALIDARG Invalid group number.

Remarks

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.

See Also