Back to Devexpress

DiagramControl.ItemBoundsChanged Event

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-29f6f9fc.md

latest3.0 KB
Original Source

DiagramControl.ItemBoundsChanged Event

Fires each time an item’s bounds are changed.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramItemBoundsChangedEventArgs> ItemBoundsChanged
vb
<DiagramCategory(DiagramCategory.DiagramItems)>
Public Event ItemBoundsChanged As EventHandler(Of DiagramItemBoundsChangedEventArgs)

Event Data

The ItemBoundsChanged event's data class is DiagramItemBoundsChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
ItemReturns the item whose bounds are changed.
NewAngleReturns the new angle at which the item is rotated.
NewIndexGets the previous item’s index within the Items collection of its parent.
NewParentReturns the item’s new parent.
NewPositionReturns the new coordinates of the item’s upper left corner.
NewSizeGets the new size of the item.
OldAngleReturns the angle at which the item was previously rotated.
OldIndexGets the previous item’s index within the Items collection of its parent.
OldParentReturns the item’s previous parent.
OldPositionReturns the previous coordinates of the item’s upper left corner.
OldSizeGets the previous size of the item.

Remarks

The Item event’s parameter returns the item whose bounds are changed.

See Also

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace