IHTMLFiltersCollection

IHTMLFiltersCollection


This interface provides the ability to access the collection of filters for the object. This is a zero-based collection of filters that is exposed from the document object. The methods for this interface allow for obtaining the number of filters in the collection, enumerating over the collection, or requesting a single filter from the collection.

IHTMLFiltersCollection Methods
get_length   get__newEnum   item

IHTMLFiltersCollection::get_length

HRESULT get_length (
    long *p 
);

Retrieves the number of elements in a collection.

p
Address of a long integer variable that receives the length.

IHTMLFiltersCollection::get__newEnum

HRESULT get__newEnum (
    IUnknown **p 
);

Retrieves an OLE enumeration interface. This will enumerate over the filters in this collection.

p
Address of a pointer to an IUnknown interface.

IHTMLFiltersCollection::item

HRESULT item ( 
    VARIANT *pvarIndex,
    VARIANT *pvarResult 
);

Retrieves a collection of filters, or a single item from the collection. The pvarIndex parameter determines which action to take.

pvarIndex
Address of a VARIANT structure specifying the element or collection to retrieve. If this parameter is a number, the method returns the element in the collection at the given position, where the first element has value 0, the second has 1, and so on. If this parameter is a string, the method returns a collection of elements, where the value of the name or ID property for each element is equal to the string.
pvarResult
Address of a VARIANT structure that receives an element object or a collection of element objects if successful, or NULL otherwise.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.