FileDialogFilters Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A collection of FileDialogFilter objects that represent the types of files that can be selected in a file dialog box that is displayed using the FileDialog object.
public interface class FileDialogFilters : Microsoft::Office::Core::_IMsoDispObj, System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000C0365-0000-0000-C000-000000000046")]
public interface FileDialogFilters : Microsoft.Office.Core._IMsoDispObj, System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("000C0365-0000-0000-C000-000000000046")>]
type FileDialogFilters = interface
interface _IMsoDispObj
interface IEnumerable
Public Interface FileDialogFilters
Implements _IMsoDispObj, IEnumerable
- Attributes
- Implements
Remarks
Use the Filters property of the FileDialog object to return a FileDialogFilters collection.
Use the Add(String, String, Object) method to add FileDialogFilter objects to the FileDialogFilters collection.
When changing the FileDialogFilters collection, remember that each application can only instantiate a single FileDialog object. This means that the FileDialogFilters collection will reset to its default filters whenever you call the FileDialog method with a new dialog box type.
Note A run-time error will occur if the Filters property is used in conjunction with the Clear(), Add, or Delete(Object) methods when applied to a Save As FileDialog object.
Properties
Application |
Returns an Application object that represents the container application for the object. |
Count |
Returns an Integer indicating the number of items in the specified collection. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
Parent |
Returns the Parent object for the specified object. |
Methods
Add(String, String, Object) |
Adds a new file filter to the list of filters in the Files of type list box in the File dialog box, and returns a FileDialogFilter object that represents the newly added file filter. |
Clear() |
Removes all list items from a command bar combo box control (drop-down list box or combo box) and clears the text box (edit box or combo box). |
Delete(Object) |
Removes a file dialog filter. |
GetEnumerator() | |
Item(Int32) |
Returns a FileDialogFilter object that is a member of the specified FileDialogFilters collection. |