![]() |
This document is archived and information here might be outdated. Recommended version. |
Filter used in CFileDialog.
[Visual Basic .NET]
Public ReadOnly Property Filter As String
[C#]
public string Filter {get;}
[C++]
HRESULT get_Filter(
System.String* Filter
);
[C++] Parameters Filter [out, retval]
Filter is a parameter of type BSTR*
Filter returns the filter used when executing the ImportPictureFromFile method. For instance, if we have an EmfPictureElement, then the filter is "Windows Enhance Metafile (*.emf)|*.emf|". Only files that match the filter can be imported into the object.
The Filter property can be used to determine if the PictureElement is a BmpPictureElement or an EmfPictureElement.