FileOpenPicker.FileTypeFilter 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파일 열기 선택기가 표시하는 파일 형식의 컬렉션을 가져옵니다.
public:
property IVector<Platform::String ^> ^ FileTypeFilter { IVector<Platform::String ^> ^ get(); };
IVector<winrt::hstring> FileTypeFilter();
public IList<string> FileTypeFilter { get; }
var iVector = fileOpenPicker.fileTypeFilter;
Public ReadOnly Property FileTypeFilter As IList(Of String)
속성 값
".doc" 및 ".png"과 같은 파일 형식(파일 이름 확장명) 컬렉션을 포함하는 fileExtensionVector 개체입니다. 파일 이름 확장명은 문자열 개체로 이 배열에 저장됩니다.
예제
파일 선택기 샘플에서는 사용자가 파일 선택기에서 보고 선택할 수 있는 파일 형식을 지정하는 방법을 보여 줍니다.
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.FileTypeFilter.Add(".jpeg");
openPicker.FileTypeFilter.Add(".png");
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.List;
openPicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
openPicker.FileTypeFilter.Add("*");
적용 대상
추가 정보
피드백
다음에 대한 사용자 의견 제출 및 보기