Skip to main content

DiagramCommandsBase Fields

Serves as a base for classes providing access to Diagram commands.
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.
CollapseSelectedContainersCommand static Collapse the selected containers.
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 An empty command.
ExportDiagramCommand static Export the diagram in the specified format to a file.
ExportToPdfCommand static Exports the diagram to a PDF document.
ExportToSvgCommand static
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 Focuses the next control after the Diagram control in the visual tree.
FocusPrevControlCommand static Focuses the previous control after the Diagram control in the visual tree.
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.
SelectTextToolCommand static Select the tool used to create text 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.
SetSelectedListsOrientationCommand static
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 Start a drag-and-drop operation for the tool passed to the command as the parameter.
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.
See Also