프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ApplyNativeSettings | void | ||
CalculateNativeDialogOptionFlags | ShellNativeMethods.FileOpenOptions | ||
CleanUpNativeFileDialog | void | ||
GenerateNotImplementedException | void | ||
GetCustomizedFileDialog | void | ||
GetDerivedOptionFlags | ShellNativeMethods.FileOpenOptions | ||
GetFileNameFromShellItem | string | ||
GetNativeFileDialog | IFileDialog | ||
GetShellItemAt | IShellItem | ||
InitializeEventSink | void | ||
InitializeNativeFileDialog | void | ||
PopulateWithFileNames | void | ||
PopulateWithIShellItems | void | ||
SyncFileTypeComboToDefaultExtension | void |
메소드 | 설명 | |
---|---|---|
AddPlace ( ShellContainer place, FileDialogAddPlaceLocation location ) : void |
Adds a location, such as a folder, library, search connector, or known folder, to the list of places available for a user to open or save items. This method actually adds an item to the Favorite Links or Places section of the Open/Save dialog.
|
|
AddPlace ( string path, FileDialogAddPlaceLocation location ) : void |
Adds a location (folder, library, search connector, known folder) to the list of places available for the user to open or save items. This method actually adds an item to the Favorite Links or Places section of the Open/Save dialog. Overload method takes in a string for the path.
|
|
ApplyCollectionChanged ( ) : void |
Applies changes to the collection.
|
|
ApplyControlPropertyChange ( string propertyName, Microsoft.WindowsAPICodePack.Dialogs.DialogControl control ) : void |
Called when a control currently in the collection has a property changed.
|
|
Dispose ( ) : void |
Releases the resources used by the current instance of the CommonFileDialog class.
|
|
IsCollectionChangeAllowed ( ) : bool |
Returns if change to the colleciton is allowed.
|
|
IsControlPropertyChangeAllowed ( string propertyName, Microsoft.WindowsAPICodePack.Dialogs.DialogControl control ) : bool |
Determines if changes to a specific property are allowed.
|
|
ResetUserSelections ( ) : void |
Removes the current selection.
|
|
ShowDialog ( ) : CommonFileDialogResult |
Displays the dialog.
|
|
ShowDialog ( |
Displays the dialog.
|
|
ShowDialog ( |
Displays the dialog.
|
메소드 | 설명 | |
---|---|---|
CheckFileItemsAvailable ( ) : void |
Ensures that the user has selected one or more files.
|
|
CheckFileNamesAvailable ( ) : void |
Ensures that the user has selected one or more files.
|
|
CommonFileDialog ( ) : System |
Creates a new instance of this class.
|
|
CommonFileDialog ( string title ) : System |
Creates a new instance of this class with the specified title.
|
|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the CommonFileDialog class and optionally releases the managed resources.
|
|
OnFileOk ( CancelEventArgs e ) : void |
Raises the CommonFileDialog.FileOk event just before the dialog is about to return with a result.
|
|
OnFileTypeChanged ( |
Raises the CommonFileDialog.FileTypeChanged event when the dialog is opened to notify the application of the initial chosen filetype.
|
|
OnFolderChanged ( |
Raises the CommonFileDialog.FolderChanged event when the user navigates to a new folder.
|
|
OnFolderChanging ( Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialogFolderChangeEventArgs e ) : void |
Raises the FolderChanging to stop navigation to a particular location.
|
|
OnOpening ( |
Raises the CommonFileDialog.DialogOpening event when the dialog is opened.
|
|
OnSelectionChanged ( |
Raises the CommonFileDialog.SelectionChanged event when the user changes the selection in the dialog's view.
|
|
ThrowIfDialogShowing ( string message ) : void |
Throws an exception when the dialog is showing preventing a requested change to a property or the visible set of controls.
|
메소드 | 설명 | |
---|---|---|
ApplyNativeSettings ( IFileDialog dialog ) : void | ||
CalculateNativeDialogOptionFlags ( ) : ShellNativeMethods.FileOpenOptions | ||
CleanUpNativeFileDialog ( ) : void | ||
GenerateNotImplementedException ( ) : void | ||
GetCustomizedFileDialog ( ) : void |
Get the IFileDialogCustomize interface, preparing to add controls.
|
|
GetDerivedOptionFlags ( |
||
GetFileNameFromShellItem ( IShellItem item ) : string | ||
GetNativeFileDialog ( ) : IFileDialog | ||
GetShellItemAt ( IShellItemArray array, int i ) : IShellItem | ||
InitializeEventSink ( IFileDialog nativeDlg ) : void | ||
InitializeNativeFileDialog ( ) : void | ||
PopulateWithFileNames ( Collection |
||
PopulateWithIShellItems ( Collection |
||
SyncFileTypeComboToDefaultExtension ( IFileDialog dialog ) : void |
Tries to set the File(s) Type Combo to match the value in 'DefaultExtension'. Only doing this if 'this' is a Save dialog as it makes no sense to do this if only Opening a file.
|
public AddPlace ( ShellContainer place, FileDialogAddPlaceLocation location ) : void | ||
place | ShellContainer | The item to add to the places list. |
location | FileDialogAddPlaceLocation | One of the enumeration values that indicates placement of the item in the list. |
리턴 | void |
public AddPlace ( string path, FileDialogAddPlaceLocation location ) : void | ||
path | string | The item to add to the places list. |
location | FileDialogAddPlaceLocation | One of the enumeration values that indicates placement of the item in the list. |
리턴 | void |
public ApplyControlPropertyChange ( string propertyName, Microsoft.WindowsAPICodePack.Dialogs.DialogControl control ) : void | ||
propertyName | string | The name of the property changed. |
control | Microsoft.WindowsAPICodePack.Dialogs.DialogControl | The control whose property has changed. |
리턴 | void |
protected CommonFileDialog ( string title ) : System | ||
title | string | The title to display in the dialog. |
리턴 | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; /// false to release only unmanaged resources. |
리턴 | void |
public IsControlPropertyChangeAllowed ( string propertyName, Microsoft.WindowsAPICodePack.Dialogs.DialogControl control ) : bool | ||
propertyName | string | The name of the property. |
control | Microsoft.WindowsAPICodePack.Dialogs.DialogControl | The control propertyName applies to. |
리턴 | bool |
protected OnFileOk ( CancelEventArgs e ) : void | ||
e | CancelEventArgs | The event data. |
리턴 | void |
protected OnFileTypeChanged ( |
||
e | The event data. | |
리턴 | void |
protected OnFolderChanged ( |
||
e | The event data. | |
리턴 | void |
protected OnFolderChanging ( Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialogFolderChangeEventArgs e ) : void | ||
e | Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialogFolderChangeEventArgs | Cancelable event arguments. |
리턴 | void |
protected OnOpening ( |
||
e | The event data. | |
리턴 | void |
protected OnSelectionChanged ( |
||
e | The event data. | |
리턴 | void |
public ShowDialog ( |
||
ownerWindowHandle | Window handle of any top-level window that will own the modal dialog box. | |
리턴 | CommonFileDialogResult |
public ShowDialog ( |
||
window | Top-level WPF window that will own the modal dialog box. | |
리턴 | CommonFileDialogResult |
protected ThrowIfDialogShowing ( string message ) : void | ||
message | string | The message to include in the exception. |
리턴 | void |