Back to Devexpress

DiagramControl Events

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-dot-underscore-events.md

latest34.4 KB
Original Source

DiagramControl Events

Provides a canvas where you or your end-users can display, create and edit various diagrams.

NameDescription
ActiveToolChangedFires each time the OptionsBehavior.ActiveTool property changes the value.
AddingNewItemFires each time a new item is added to the diagram by the end-user (e.g., dropped from the toolbox, drawn using a tool).
AutoSizeChangedThis event is not relevant for this class. Inherited from Control.
BackColorChangedThis member is not supported.
BackgroundImageChangedOccurs when the value of the BackgroundImage property changes. Inherited from Control.
BackgroundImageLayoutChangedOccurs when the BackgroundImageLayout property changes. Inherited from Control.
BeforeItemsMovingRaises each time the end-user attempts to move a diagram item.
BeforeItemsResizingRaises each time the end-user attempts to resize a diagram item.
BeforeItemsRotatingRaises each time the end-user attempts to rotate a diagram item.
BindingContextChangedOccurs when the value of the BindingContext property changes. Inherited from Control.
CanRedoChangedFires each time the value of the DiagramControl.CanRedo property is changed.
CanUndoChangedFires each time the value of the DiagramControl.CanUndo property is changed.
CanvasBoundsChangedOccurs when the size of the canvas is changed.
CausesValidationChangedOccurs when the value of the CausesValidation property changes. Inherited from Control.
ChangeUICuesOccurs when the focus or keyboard user interface (UI) cues change. Inherited from Control.
ClickOccurs when the control is clicked. Inherited from Control.
ClientSizeChangedOccurs when the value of the ClientSize property changes. Inherited from Control.
ClosedEditorFires after the end-user closes the diagram item’s text editor.
ConnectionChangedOccurs after the connection has been changed by a user.
ConnectionChangingOccurs when the connection is about to be changed by the end-user.
ContainerIsCollapsedChanged
ContainerIsCollapsedChanging
ContextMenuChangedOccurs when the value of the ContextMenu property changes. Inherited from Control.
ContextMenuStripChangedOccurs when the value of the ContextMenuStrip property changes. Inherited from Control.
ControlAddedOccurs when a new control is added to the Control.ControlCollection. Inherited from Control.
ControlRemovedOccurs when a control is removed from the Control.ControlCollection. Inherited from Control.
CursorChangedOccurs when the value of the Cursor property changes. Inherited from Control.
CustomCursorOccurs when the mouse cursor enters the diagram control.
CustomDrawBackgroundOccurs before the Canvas background is rendered.
CustomDrawItemProvides the ability to customize the appearance of diagram items.
CustomGetEditableItemPropertiesAllows you to modify the list of diagram item properties that can be edited by end-users in the Properties Panel.
CustomGetEditableItemPropertiesCacheKeyAllows you to update the set of properties displayed by the property grid.
CustomGetSerializableItemPropertiesAllows you to modify the list of serializable properties of diagram items.
CustomHitTestOccurs each time the cursor moves while hovering over a diagram item.
CustomItemDragOccurs when an end-user starts dragging a diagram item.
CustomItemDragResultOccurs before a drag and drop operation is completed.
CustomItemGiveFeedbackOccurs while diagram items are dragged.
CustomItemQueryContinueDragOccurs during a drag-and-drop operation.
CustomLoadDocumentFires after an end-user selects a file in the ‘Open File’ dialog, or after a document load is initiated by setting the DiagramControl.DocumentSource property in code.
CustomLoadImageFires after an end-user selects a file in the ‘Insert Picture’ dialog.
CustomSaveDocumentFires when the diagram is about to be saved (when an end-user uses Save actions in the Diagram’s Ribbon menu, or when the DiagramControl.SaveFile/DiagramControl.SaveFileAs method is called). The event allows you to implement custom saving logic.
DeletingItemsFires when the end-user removes items from the diagram canvas. Obsoleted. Use the DiagramControl.ItemsDeleting event instead.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DockChangedOccurs when the value of the Dock property changes. Inherited from Control.
DocumentLoadedOccurs after a document is loaded into the DiagramControl.
DoubleClickOccurs when the control is double-clicked. Inherited from Control.
DragDropOccurs when a drag-and-drop operation is completed. Inherited from Control.
DragEnterOccurs when an object is dragged into the control’s bounds. Inherited from Control.
DragLeaveOccurs when an object is dragged out of the control’s bounds. Inherited from Control.
DragOverOccurs when an object is dragged over the control’s bounds. Inherited from Control.
EnabledChangedOccurs when the Enabled property value has changed. Inherited from Control.
EnterOccurs when the control is entered. Inherited from Control.
ExceptionMessageAllows you to handle exceptions that may raise during various actions on the Diagram Control.
FontChangedThis member is not supported by the DiagramControl class.
ForeColorChangedThis member is not supported by the DiagramControl class.
GiveFeedbackOccurs during a drag operation. Inherited from Control.
GotFocusOccurs when the control receives focus. Inherited from Control.
HandleCreatedOccurs when a handle is created for the control. Inherited from Control.
HandleDestroyedOccurs when the control’s handle is in the process of being destroyed. Inherited from Control.
HasChangesChangedFires each time the value of the DiagramControl.HasChanges property is changed.
HelpRequestedOccurs when the user requests help for a control. Inherited from Control.
ImeModeChangedOccurs when the ImeMode property has changed. Inherited from Control.
InvalidatedOccurs when a control’s display requires redrawing. Inherited from Control.
IsTextEditModeChangedFires each time the value of the DiagramControl.IsTextEditMode property is changed.
ItemBoundsChangedFires each time an item’s bounds are changed.
ItemContentChangedFires each time the end-user changes the item’s text.
ItemCreatingOccurs when the DiagramControl creates a diagram item.
ItemDrawingFires repeatedly as the end-user is drawing a shape using a drawing tool (Rectangle, Ellipse, Right Triangle or Hexagon).
ItemInitializingFires each time an item is created via the DevExpress.Diagram.Core.ItemTool.
ItemsChangedFires each time an item is added or removed from the diagram.
ItemsDeletingFires each time diagram items have been removed from the canvas.
ItemsMovingFires as the end-user is moving diagram items.
ItemsPastingFires as the end-user pastes the diagram items from the clipboard onto the canvas.
ItemsResizingFires when a diagram item is resized by the end-user or programmatically.
ItemsRotatingFires when the end-user attempts to rotate a diagram item.
KeyDownOccurs when a key is pressed while the control has focus. Inherited from Control.
KeyPressOccurs when a character. space or backspace key is pressed while the control has focus. Inherited from Control.
KeyUpOccurs when a key is released while the control has focus. Inherited from Control.
LayoutOccurs when a control should reposition its child controls. Inherited from Control.
LeaveOccurs when the input focus leaves the control. Inherited from Control.
LocationChangedOccurs when the Location property value has changed. Inherited from Control.
LostFocusOccurs when the control loses focus. Inherited from Control.
MarginChangedOccurs when the control’s margin changes. Inherited from Control.
MouseCaptureChangedOccurs when the control loses mouse capture. Inherited from Control.
MouseClickOccurs when the control is clicked by the mouse. Inherited from Control.
MouseDoubleClickOccurs when the control is double clicked by the mouse. Inherited from Control.
MouseDownOccurs when the mouse pointer is over the control and a mouse button is pressed. Inherited from Control.
MouseEnterOccurs when the mouse pointer enters the control. Inherited from Control.
MouseHoverOccurs when the mouse pointer rests on the control. Inherited from Control.
MouseLeaveOccurs when the mouse pointer leaves the control. Inherited from Control.
MouseMoveOccurs when the mouse pointer is moved over the control. Inherited from Control.
MouseUpOccurs when the mouse pointer is over the control and a mouse button is released. Inherited from Control.
MouseWheelOccurs when the mouse wheel moves while the control has focus. Inherited from Control.
MoveOccurs when the control is moved. Inherited from Control.
PaddingChangedOccurs when the control’s padding changes. Inherited from Control.
PaintOccurs when the control is redrawn. Inherited from Control.
ParentChangedOccurs when the Parent property value changes. Inherited from Control.
PreviewKeyDownOccurs before the KeyDown event when a key is pressed while focus is on this control. Inherited from Control.
QueryAccessibilityHelpOccurs when AccessibleObject is providing help to accessibility applications. Inherited from Control.
QueryConnectionPointsFires each time the end-user moves the cursor with the active Connector Tool near shapes or their connection points.
QueryContinueDragOccurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Inherited from Control.
QueryItemDrawActionFires repeatedly as the end-user hovers over the diagram canvas while a drawing tool (Rectangle, Ellipse, Right Triangle or Hexagon) is selected.
QueryItemEditActionFires each time the end-user attempts to initiate text editing to edit the text within a diagram item.
QueryItemsActionFires each time the end-user attempts to perform an action on a diagram item.
QueryItemSnappingFires repeatedly as the end-user triggers snapping while dragging or resizing a diagram shape.
RegionChangedOccurs when the value of the Region property changes. Inherited from Control.
RelayoutItemsCompletedOccurs immediately after an Automatic Layout algorithm is completed.
ResizeOccurs when the control is resized. Inherited from Control.
RightToLeftChangedOccurs when the RightToLeft property value changes. Inherited from Control.
SelectionChangedFires when the selection changes (new items are selected, or currently selected items are deselected).
ShowingEditorEnables you to prevent an end-user from activating the editors of individual diagram items.
ShowingExportDialog
ShowingOpenDialogFires before showing an ‘Open File’ dialog, and allows it to be customized or replaced.
ShowingOpenImageDialogFires before showing an ‘Insert Picture’ dialog, and allows it to be customized.
ShowingSaveDialogFires before showing a ‘Save File As’ dialog, and allows it to be customized or replaced.
SizeChangedOccurs when the Size property value changes. Inherited from Control.
StyleChangedOccurs when the control style changes. Inherited from Control.
SubordinatesHiddenOccurs after a DiagramItem‘s subordinates are hidden.
SubordinatesHidingOccurs before a DiagramItem‘s subordinates are hidden.
SubordinatesShowingOccurs before a DiagramItem‘s subordinates are shown.
SubordinatesShownOccurs after a DiagramItem‘s subordinates are shown.
SystemColorsChangedOccurs when the system colors change. Inherited from Control.
TabIndexChangedOccurs when the TabIndex property value changes. Inherited from Control.
TabStopChangedOccurs when the TabStop property value changes. Inherited from Control.
TextChangedOccurs when the Text property value changes. Inherited from Control.
TitleChangedFires each time the value of the DiagramControl.Title property is changed.
ValidatedOccurs when the control is finished validating. Inherited from Control.
ValidatingOccurs when the control is validating. Inherited from Control.
VisibleChangedOccurs when the Visible property value changes. Inherited from Control.
ZoomFactorChangedRaises each time the current diagram zoom factor is changed.

See Also

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace