Get notifications about Kanzi Studio events and get access to the core Kanzi Studio operations, such as access to the Kanzi Studio project, get input from the user, and show notifications. More...
Public Member Functions | |
DateTime | GetExpirationDateForLicensedFeature (string featureId) |
Gets the expiration date of the license of an optional feature. More... | |
string | GetFolderPathFromUser (string dialogTitle, string initialDirectory, string userPreferencesSetting) |
Prompts the user to provide a path to a directory. More... | |
string | GetPathFromUser (string dialogTitle, string initialDirectory, string userPreferencesSetting, string defaultExtension, string filter, PathDialogType pathDialogType, bool multiselect) |
Opens a Windows dialog that allows the user to browse their computer to select a path. More... | |
void | Log (string message) |
Writes to the Kanzi Studio Log window. More... | |
Get notifications about Kanzi Studio events and get access to the core Kanzi Studio operations, such as access to the Kanzi Studio project, get input from the user, and show notifications.
DateTime GetExpirationDateForLicensedFeature | ( | string | featureId | ) |
Gets the expiration date of the license of an optional feature.
featureId | The feature ID of the optional feature. |
string GetFolderPathFromUser | ( | string | dialogTitle, |
string | initialDirectory, | ||
string | userPreferencesSetting | ||
) |
Prompts the user to provide a path to a directory.
dialogTitle | The title of the dialog box. |
initialDirectory | Initial directory where the folder dialog is opened. |
userPreferencesSetting | A key to be used for storing the last selected folder in the user preferences. Set as null not to save the path. If an existing value is found from user preferences, that is used over the value supplied in initialDirectory parameter. |
string GetPathFromUser | ( | string | dialogTitle, |
string | initialDirectory, | ||
string | userPreferencesSetting, | ||
string | defaultExtension, | ||
string | filter, | ||
PathDialogType | pathDialogType, | ||
bool | multiselect | ||
) |
Opens a Windows dialog that allows the user to browse their computer to select a path.
You can use this function to get a path to either open or save a file.
dialogTitle | The title of the dialog box. |
initialDirectory | The initial directory where to open the dialog. |
userPreferencesSetting | The user preferences key to use to store the last selected directory. Set as null not to save the path. If an existing value is found from user preferences, that is used over the value supplied in initialDirectory parameter. |
defaultExtension | The default file extension to use to open or save the file. |
filter | The filter definition that sets which file extensions the dialog allows the user to select. |
pathDialogType | The type of the dialog. Use PathDialogType.OPEN for the open file dialog and PathDialogType.SAVE for the save file dialog. |
multiselect | When opening files, sets whether the user is allowed to select multiple files. |
Examples
To open a Windows dialog which allows the user to browse their computer and select a path:
void Log | ( | string | message | ) |
Writes to the Kanzi Studio Log window.
For example, you can use this function to inform the user about the plugin progress in the Log window.
message | The message you want to print to the Log window. |
Examples
To print a message to the Kanzi Studio Log window: