Edit

Share via


FileSearch Interface

Definition

Represents the functionality of the Open dialog box accessible by the File menu.

public interface class FileSearch : Microsoft::Office::Core::_IMsoDispObj
[System.Runtime.InteropServices.Guid("000C0332-0000-0000-C000-000000000046")]
public interface FileSearch : Microsoft.Office.Core._IMsoDispObj
[<System.Runtime.InteropServices.Guid("000C0332-0000-0000-C000-000000000046")>]
type FileSearch = interface
    interface _IMsoDispObj
Public Interface FileSearch
Implements _IMsoDispObj
Attributes
Implements

Remarks

Use the FileSearch property of an individual application's Application object to return the FileSearch object.

Use the NewSearch() method to reset the search criteria to the default settings. All property values are retained after each search is run, and by using the NewSearch method you can selectively set properties for the next file search without manually resetting previous property values.

Properties

Application

Returns an Application object that represents the container application for the object.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

FileName

Returns or sets the name of the file to look for during a file search.

FileType

Returns or sets the type of file to look for during a file search.

FileTypes

Returns a FileTypes collection.

FoundFiles

Returns a FoundFiles object that contains the names of all the files found during a search.

LastModified

Returns or sets a constant that represents the amount of time since the specified file was last modified and saved.

LookIn

Returns or sets the folder to be searched during the specified file search.

MatchAllWordForms

Determines if the file search is expanded to include all forms of the specified word contained in the body of the file or in the file's properties.

MatchTextExactly

Determines if the specified file search will find only files whose body text or file properties contain the exact word or phrase that you've specified.

PropertyTests

Returns the PropertyTests collection that represents all the search criteria for a file search.

SearchFolders

Returns a SearchFolders collection.

SearchScopes

Returns a SearchScopes collection.

SearchSubFolders

Determines if the search includes all the subfolders in the folder specified by the LookIn property.

TextOrProperty

Returns or sets the word or phrase to be searched for, in either the body of a file or the file's properties, during the file search.

Methods

Execute(MsoSortBy, MsoSortOrder, Boolean)

Begins the search for the specified file(s).

NewSearch()

Resets all the search criteria settings to their default settings.

RefreshScopes()

Refreshes the list of currently available ScopeFolder objects.

Applies to