Skip to main content

HtmlEditorShortcut Class

An individual shortcut within the ASPxHtmlEditor control.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class HtmlEditorShortcut :
    CollectionItem

The following members return HtmlEditorShortcut objects:

Remarks

The HtmlEditorShortcut class implements the functionality of an individual shortcut within the ASPxHtmlEditor control. Instances of the HtmlEditorShortcut class are maintained within the ASPxHtmlEditor.Shortcuts collection. Individual shortcuts can be accessed and manipulated (added or deleted) by using the means provided by the HtmlEditorShortcutCollection class, exposed via this Shortcuts property.

A HtmlEditorShortcut element associates a keyboard combination (HtmlEditorShortcut.Shortcut) to an action (HtmlEditorShortcut.ActionType) to be invoked when the combination is pressed. The name of an executed command or invoked custom dialog is specified by the HtmlEditorShortcut.ActionName property. You can use the HtmlEditorShortcut.ActionView property to specify a view mode where the shortcut is working. To provide a shortcut for several views, create several HtmlEditorShortcut objects with corresponding HtmlEditorShortcut.ActionView property values.

<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
            <Shortcuts>
                <dx:HtmlEditorShortcut ActionName="fullscreen" Shortcut="F11" ActionView="Design" />
                <dx:HtmlEditorShortcut ActionName="fullscreen" Shortcut="F11" ActionView="Html" />
                <dx:HtmlEditorShortcut ActionName="fullscreen" Shortcut="F11" ActionView="Preview" />
            </Shortcuts>
        </dx:ASPxHtmlEditor>

See the Keyboard Shortcuts topic for more information.

Inheritance

See Also