Share via


FilgraphManager.FilterCollection

Note  This topic is deprecated. It applies to Visual Basic 6.0. DirectShow is not supported for Visual Basic .NET or C#.

The FilterCollection property retrieves a collection of the filters in the filter graph.

objGraph.FilterCollection As IAMCollection

Parameters

The property takes no parameters.

Return Value

Returns an IAMCollection object that contains zero or more IFilterInfo objects. Each IFilterInfo object represents one filter in the graph.

Remarks

This property is read-only.

Examples

The following example displays the names of the filters in the filter graph:

Dim objFilter As Object
For i = 1 To mGraph.FilterCollection.Count - 1
    ' Returns the i'th item, and puts it in objFilter
    mGraph.FilterCollection.Item i, objFilter
    List1.AddItem objFilter.Name
Next

You can also use a For ... Each loop to enumerate each filter, as follows:

For Each objFilter In mGraph.FilterCollection
    List1.AddItem objFilter.Name
Next

Requirements

Type Library

ActiveMovie control type library

DLL

Quartz.dll

See Also

FilgraphManager Object

 

 

Send comments about this topic to Microsoft

Build date: 8/31/2010