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]
VB6 Count As Long

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)
VB6 Item(
    index As Variant) As FilterFileType
  • 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)
VB6 Add(
    fileType As FilterFileType) As Long
  • 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)
VB6 AddAtIndex(
    fileType As FilterFileType,
    index As Long)
  • 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)
VB6 Remove(
    index As Long)
  • index
    The index of the item to remove.

RemoveAllIFilterFileTypes

Removes all items from the collection.

IDL HRESULT RemoveAll()
.NET void RemoveAll()
VB6 RemoveAll