TCnSaveFileDialog Class
Prompts the user to select a location for saving a file.
CNClrLib.Control.Base.TClrBaseComponent
CNClrLib.Component.SaveFileDialog.TCnSaveFileDialog
type TCnSaveFileDialog = class(TClrBaseComponent) end;
The TCnSaveFileDialog type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates and initializes a TCnSaveFileDialog instance. (Overrides TClrBaseComponent.Create(TComponent).) | |
Destroy | Frees the resources allocated with a TCnSaveFileDialog instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
AddExtension | Gets or sets a value indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension. | |
AutoUpgradeEnabled | Gets or sets a value indicating whether this FileDialog instance should automatically upgrade appearance and behavior when running on Windows Vista. | |
CheckFileExists | Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. | |
CheckPathExists | Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a path that does not exist. | |
CreatePrompt | Gets or sets a value indicating whether the dialog box prompts the user for permission to create a file if the user specifies a file that does not exist. | |
DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) | |
DefaultExt | Gets or sets the default file name extension. | |
DereferenceLinks | Gets or sets a value indicating whether the dialog box returns the location of the file referenced by the shortcut or whether it returns the location of the shortcut (.lnk). | |
FileName | Gets or sets a string containing the file name selected in the file dialog box. | |
FileNames | Gets the file names of all selected files in the dialog box. | |
Filter | Gets or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box. | |
FilterIndex | Gets or sets the index of the filter currently selected in the file dialog box. | |
InitialDirectory | Gets or sets the initial directory displayed by the file dialog box. | |
OverwritePrompt | Gets or sets a value indicating whether the Save As dialog box displays a warning if the user specifies a file name that already exists. | |
RestoreDirectory | Gets or sets a value indicating whether the dialog box restores the directory to the previously selected directory before closing. | |
ShowHelp | Gets or sets a value indicating whether the Help button is displayed in the file dialog box. | |
SupportMultiDottedExtensions | Gets or sets whether the dialog box supports displaying and saving files that have multiple file name extensions. | |
Title | Gets or sets the file dialog box title. | |
ValidateNames | Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names. |
Name | Description | |
---|---|---|
Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) | |
DoGetDefaultClrObject | Represents method | |
DoGetDotNetBaseComponent | Represents method | |
GetClrObject | Represents method | |
OpenFile | Opens the file with read/write permission selected by the user. | |
RegisterEventCallBack(ClrWString,Pointer) | Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.) | |
RegisterEventSource | Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.) | |
Reset | Resets all dialog box options to their default values. | |
ShowDialog | Overloaded. Runs a common dialog box with a default owner. | |
ShowDialog(TWinControl) | Overloaded. Runs a common dialog box with the specified owner. | |
UnRegisterEventCallBack(ClrWString,Pointer) | Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.) | |
UnRegisterEventSource | Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.) |
Name | Description | |
---|---|---|
OnFileOk | Occurs when the user clicks on the Open or Save button on a file dialog box. | |
OnHelpRequest | Occurs when the user clicks the Help button on a common dialog box. |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.