Skip to main content
JS

DiagramCommand Enum

Lists diagram commands.

Namespace: DevExtreme.AspNet.Mvc

Assembly: DevExtreme.AspNet.Core.dll

Declaration

[JsonConverter(typeof(StringEnumConverter))]
public enum DiagramCommand

Members

Name Description
Separator

A command that displays a separator.

ExportSvg

A command that exports the diagram to the SVG format.

ExportPng

A command that exports the diagram to the PNG format.

ExportJpg

A command that exports the diagram to the JPG format.

Undo

A command that undoes the last action.

Redo

A command that redoes the last undone action.

Cut

A command that cuts the selected content and place it in the clipboard.

Copy

A command that copies the selected content to the clipboard.

Paste

A command that pastes the content of the clipboard at the current cursor position.

SelectAll

A command that selects all content inside the diagram.

Delete

A command that deletes the selected content.

FontName

A command that changes the font of the selected text.

FontSize

A command that changes the size of the selected text.

Bold

A command that applies the bold text formatting to the selected text. If it’s already applied, cancels it.

Italic

A command that makes the selected text italic or regular type depending on the current state.

Underline

A command that applies the underline text formatting to the selected text. If it’s already applied, cancels it.

FontColor

A command that changes the font color of the selected text.

LineStyle

A command that specifies the line style of the selected shapes and/or connectors.

LineWidth

A command that specifies the line width of the selected shapes and/or connectors.

LineColor

A command that specifies the line color of the selected shapes and/or connectors.

FillColor

A command that changes the fill color of the selected shapes.

TextAlignLeft

A command that aligns the text to the left side of the shape.

TextAlignCenter

A command that aligns the text to the center of the shape.

TextAlignRight

A command that aligns the text to the right side of the shape.

Lock

A command that locks the selected content to prevent it from modifying.

Unlock

A command that unlocks the selected locked content.

SendToBack

A command that sends a selected content to the back.

BringToFront

A command that brings the selected content to the front.

InsertShapeImage

A command that inserts an image to the shape.

EditShapeImage

A command that changes a shape image.

DeleteShapeImage

A command that deletes a shape image.

ConnectorLineType

A command that specifies the type of a connector.

ConnectorLineStart

A command that specifies the tip of a connector’s start point.

ConnectorLineEnd

A command that specifies the tip of a connector’s end point.

LayoutTreeTopToBottom

A command that sets the layout to Tree and the layout direction to Top-to-Bottom.

LayoutTreeBottomToTop

A command that sets the layout to Tree and the layout direction to Bottom-to-Top.

LayoutTreeLeftToRight

A command that sets the layout to Tree and the layout direction to Left-to-Right.

LayoutTreeRightToLeft

A command that sets the layout to Tree and the layout direction to Right-to-Left.

LayoutLayeredTopToBottom

A command that sets the layout to Layered and the layout direction to Top-to-Bottom.

LayoutLayeredBottomToTop

A command that sets the layout to Layered and the layout direction to Bottom-to-Top.

LayoutLayeredLeftToRight

A command that sets the layout to Layered and the layout direction to Left-to-Right.

LayoutLayeredRightToLeft

A command that sets the layout to Layered and the layout direction to Right-to-Left.

FullScreen

A command that specifies whether or not to display the widget in full-screen mode.

ZoomLevel

A command that specifies the zoom level.

ShowGrid

A command that specifies whether grid lines are visible.

SnapToGrid

A command that specifies whether diagram elements should snap to grid lines.

GridSize

A command that specifies the grid pitch.

Units

A command that specifies the unit for measurement options.

PageSize

A command that specifies a size of pages.

PageOrientation

A command that specifies the page orientation.

PageColor

A command that specifies the color of a diagram page.

SimpleView

A command that toggles Simple View mode.

Toolbox

A command that toggles visibility of the toolbox.

See Also