Skip to main content
A newer version of this page is available. .

DiagramCommandsBase Members

Serves as a base for classes providing access to Diagram commands.

Constructors

Name Description
DiagramCommandsBase(IDiagramControl) Initializes a new instance of the DiagramCommandsBase class.

Fields

Name Description
BringForwardCommand static Bring the selected diagram items forward.
BringToFrontCommand static Bring the selected diagram items to the front.
CancelCommand static Exit the input state (i.e., editing a text within a diagram item) or, if the control is not in the input state, deselect all diagram items.
ChangeConnectorTypeCommand static Change the type of the selected connector.
CircularLayoutCommand static Realign diagram items according to the circular layout algorithm.
CopyCommand static Copy the selected diagram items.
CutCommand static Remove the selected diagram items and copy them to the Clipboard.
DecreaseFontSizeCommand static Decrease the font size for the text within the selected diagram items.
DeleteCommand static Remove the selected diagram items.
EditCommand static Edit the text within the selected shape.
EmptyCommand static
ExportDiagramCommand static Export the diagram in the specified format to a file.
FitToDrawingCommand static Change the page size to fit the diagram contents.
FitToPageCommand static Set the diagram zoom factor value to fit all pages with content within the canvas.
FitToWidthCommand static Set the diagram zoom factor value to fit the entire diagram width.
FlipImageCommand static Flip the selected image item.
FocusNextControlCommand static
FocusPrevControlCommand static
IncreaseFontSizeCommand static Increase the font size for the text within the selected diagram items.
InsertImageCommand static Invoke the “Insert Picture” dialog window.
LoadImageCommand static Invoke the Insert Picture dialog to change the selected image item.
MindMapTreeLayoutCommand static Realign diagram items to form a mind map tree diagram.
MindMapTreeLayoutForSubordinatesCommand static Realign the subordinate items of the selected diagram item to form a mind map tree.
MoveSelectionCommand static Move the selected diagram items the specified distance from its current position in the specified direction.
MoveSelectionNoSnapCommand static Move the selected diagram items the specified distance from its current position in the specified direction without snapping them to the grid.
NewFileCommand static Close the current file and create a new one. If the current file contains unsaved changes, the end-user is prompted to save them.
OpenFileCommand static Create a new diagram file and open it.
PasteCommand static Inserts the diagram items from the Clipboard onto the canvas.
PrintCommand static Invoke the Print dialog window.
QuickPrintCommand static Print the diagram with default print settings.
RedoCommand static Reapply the last action that was undone in the diagram control.
ResetSelectedImagesCommand static Reset the selected images to their original state.
RotateCommand static Rotate the selected item counterclockwise around its anchor point by the specified angle.
SaveFileAsCommand static Invoke the Save File As dialog window.
SaveFileCommand static Save changes made to the diagram. If the diagram has not been saved to a file before, the Save File As dialog window is invoked.
SelectAllCommand static Select all items within the diagram.
SelectConnectorToolCommand static Select the tool used to create connectors.
SelectEllipseToolCommand static Select the tool used to create ellipse shapes.
SelectHexagonToolCommand static Select the tool used to create hexagonal shapes.
SelectNextItemCommand static Select the next diagram item in the order they were added to the diagram.
SelectPanToolCommand static Select the tool used to navigate the diagram.
SelectPointerToolCommand static Select the tool used to select diagram items.
SelectPrevItemCommand static Select the previous diagram item in the order they were added to the diagram.
SelectRectangleToolCommand static Select the tool used to create rectangular shapes.
SelectRightTriangleToolCommand static Select the tool used to create triangular shapes.
SelectToolCommand static Select the specified diagram tool.
SendBackwardCommand static Send the selected diagram items backward.
SendToBackCommand static Send the selected diagram items to the back.
SetHorizontalAlignmentCommand static Set the horizontal alignment of the text within the selected shapes.
SetPageParametersCommand static Invoke the Page Setup dialog window.
SetSelectedContainersHeaderPaddingCommand static Set the specified header padding value for the selected container items.
SetSelectedContainersPaddingCommand static Set the specified padding value for the selected container items.
SetSelectedContainersShapeCommand static Set the specified shape style for the selected container items.
SetSelectedImagesScaleCommand static Set the specified scale factor for the selected image items.
SetSelectedImagesStretchModeCommand static Set the specified stretch mode for the selected image items.
SetSelectedItemsStyleCommand static Set the specified style (id) for the selected diagram items.
SetVerticalAlignmentCommand static Set the vertical alignment of the text within the selected shapes.
SetZoomCommand static Apply a zoom factor value to a document.
ShowContainerHeaderCommand static Toggle the visibility of headers of the selected containers.
ShowPopupMenuCommand static Invoke the popup menu for the selected item.
ShowPrintPreviewCommand static Invoke the Print Preview.
ShowPropertiesPanelCommand static Invoke the ‘Properties’ panel.
StartDragToolAlternateCommand static
StartDragToolCommand static Select the tool used to drag diagram items.
SugiyamaLayoutCommand static Realign diagram items according to the layered graph drawing (Sugiyama-style graph drawing) algorithm.
TipOverTreeLayoutCommand static Realign diagram items according to the tip-over tree layout algorithm.
TipOverTreeLayoutForSubordinatesCommand static Realign the subordinate items of the selected diagram item according to the tip-over tree layout algorithm.
ToggleFontBoldCommand static Toggle bold font for the text within the selected shapes.
ToggleFontItalicCommand static Toggle italic font for the text within the selected shapes.
ToggleFontStrikethroughCommand static Toggle strikethrough for the text within the selected shapes.
ToggleFontUnderlineCommand static Toggle underline for the text within the selected shapes.
ToggleSubordinatesVisibilityCommand static Toggle the visibility of the child items of the selected diagram item.
TreeLayoutCommand static Realign diagram items to form a tree diagram.
TreeLayoutForSubordinatesCommand static Realign the subordinate items of the selected diagram item according to the tree layout algorithm.
UndoCommand static Cancel changes resulting from the last operation.
UseToolCommand static Use a diagram tool.
ZoomInCommand static Increase the current zoom factor of a diagram.
ZoomOutCommand static Decrease the current zoom factor of a diagram.

Properties

Name Description
DefaultCommands static
SelectionCommands static Provides access to selection commands.
UndoRedoCommands static Provides access to undo and redo commands.
ZoomCommands static Provides access to zoom commands.

Methods

Name Description
CanExecute(DiagramCommand) Gets whether the specified command can be executed in its current state.
CanExecute<T>(DiagramCommand<T>, T) Gets whether the specified command can be executed in its current state.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Execute(DiagramCommand, IMouseArgs) Executes the specified diagram command.
Execute<T>(DiagramCommand<T>, T, IMouseArgs) Executes the specified diagram command.
GetCommandHotkeys(DiagramCommandBase, Object)
GetHashCode() Serves as the default hash function. Inherited from Object.
GetKeyDownCommand(Key, ModifierKeys) static Gets the command associated with pressing down the specified key or key combination.
GetKeyUpCommand(Key, ModifierKeys) static Gets the command associated with releasing the specified key or key combination.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RegisterHandlers(Action<IHandlersRegistrator>, Boolean) Allows you to override the default commands.
RegisterHotKeys(Action<IHotKeysRegistrator>) Allows you to clear the existing shortcuts or define new ones.
ToString() Returns a string that represents the current object. Inherited from Object.
UpdateCommands(IEnumerable<DiagramCommandBase>)
See Also