InsertPictureCommand
Opens a file picker and inserts the selected image when its extension is supported by a built-in or custom decoder.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class InsertPictureCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseInsertPictureCommand
Implements:
Inherited Members
Constructors
Creates a command that inserts images into the specified editor.
public InsertPictureCommand(RadRichTextBox editor)
The editor where the selected image is inserted.
Properties
Treats insertion as a possible replacement of selected content for protected-range permission checks.
protected override bool IsDeletingCommand { get; }
Overrides:
Methods
Uses the current selection state to reject insertion when a single ComboBox, Date, DropDownList, or Text content control is selected.
Opens the file picker and inserts a selected image whose extension is supported.
protected override void ExecuteOverride(object parameter)
An optional file filter string containing |; other values use the default image filter.
Overrides: