SaveCommand
Saves the editor's current document; WinForms builds can reuse a stored destination string, while other builds show the save dialog for each execution.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class SaveCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseSaveCommand
Implements:
Inherited Members
Constructors
Initializes the command with an existing destination path.
public SaveCommand(RadRichTextBox editor, string fileName)
The rich text box whose document is saved.
fileNamestringThe destination path used by this command.
Initializes the command without a destination path, so execution can show the save dialog.
public SaveCommand(RadRichTextBox editor)
The rich text box whose document is saved.
Properties
Gets Always because saving does not edit the document.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Gets a value indicating that saving is allowed when the editor is in read-only mode.
protected override bool CanExecuteInReadOnlyMode { get; }
Overrides:
Gets a value indicating that saving is allowed in read-only ranges.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Saves to a stored file name when available in WinForms builds; otherwise, displays the save dialog to choose a destination.
protected override void ExecuteOverride(object parameter)
An optional file-type filter used when the save dialog is displayed.
Overrides: