FilterFileTypes Object

This collection is accessed via the Preferences Object. It corresponds to the information configured on the File Types options page. Each entry on that page corresponds to a FilterFileType Object member of this collection. Each such member determines the type of comparison and optional filter program to be used to compare files with names matching a specific pattern.

Properties

Countread-onlyIFilterFileTypes

The number of items in the collection.

IDL [propget] HRESULT Count([out, retval] long* pValue)
.NET Int32 Count[get]

Itemread-onlyIFilterFileTypes

Returns the item (not a copy) at the given index.

IDL [propget] HRESULT Item(
    [in] VARIANT index,
    [out, retval] IFilterFileType** pValue)
.NET FilterFileType get_Item(
    Object index)
  • index
    A zero-based integer index into the collection.

Methods

AddIFilterFileTypes

Adds a copy of the item fileType to the end of the collection. Returns the index of the added item.

IDL HRESULT Add(
    [in] IFilterFileType* fileType,
    [out, retval] long* pValue)
.NET Int32 Add(
    FilterFileType fileType)
  • fileType
    The item to be copied and added to the collection.

AddAtIndexIFilterFileTypes

Inserts a copy of the fileType item at the specified index. The number of items in the collection is increased by one.

IDL HRESULT AddAtIndex(
    [in] IFilterFileType* fileType,
    [in] long index)
.NET void AddAtIndex(
    FilterFileType fileType,
    Int32 index)
  • fileType
    The item to be copied and added to the collection.
  • index
    The index at which to insert the copy of the item.

RemoveIFilterFileTypes

Removes the item at the specified index.

IDL HRESULT Remove(
    [in] long index)
.NET void Remove(
    Int32 index)
  • index
    The index of the item to remove.

RemoveAllIFilterFileTypes

Removes all items from the collection.

IDL HRESULT RemoveAll()
.NET void RemoveAll()