[]
Creates a new undo action for moving or sizing a child control.
public ChildChangeUndoAction(SheetView sheetView, ElementWindowless shape)
Public Sub New(sheetView As SheetView, shape As ElementWindowless)
Type | Name | Description |
---|---|---|
SheetView | sheetView | |
ElementWindowless | shape |
Creates a new undo action for changing the specified shape or cell note in the specified SheetView.
public ChildChangeUndoAction(SheetView sheetView, ElementWindowless shape, bool attachUIChangeCompleteHandler)
Public Sub New(sheetView As SheetView, shape As ElementWindowless, attachUIChangeCompleteHandler As Boolean)
Type | Name | Description |
---|---|---|
SheetView | sheetView | SheetView |
ElementWindowless | shape | ElementWindowless |
bool | attachUIChangeCompleteHandler | True to attach a handler to the UIChangeComplete event to the shape (when shape is PSShape only) |
This object saved undo state on construction, rather than during PerformUndoAction, since the shape object implements the user interface to make changes to itself. The SpreadView will call PerformUndoAction when the shape's UIChangeComplete event fires and edit mode is off (if the shape is a cell note).
Creates a new undo action for moving a shape or cell note in the specified direction, changing its width and height, and rotation angle (for shapes only).
public ChildChangeUndoAction(int dx, int dy, int dw, int dh, float dr)
Public Sub New(dx As Integer, dy As Integer, dw As Integer, dh As Integer, dr As Single)
Type | Name | Description |
---|---|---|
int | dx | Horizontal change |
int | dy | Vertical change |
int | dw | Width change |
int | dh | Height change |
float | dr | Rotation angle change |
Creates a new undo action for moving or sizing a child control.
public ChildChangeUndoAction(Control ctl, Rectangle oldBounds, Rectangle newBounds)
Public Sub New(ctl As Control, oldBounds As Rectangle, newBounds As Rectangle)
Type | Name | Description |
---|---|---|
Control | ctl | Control |
Rectangle | oldBounds | Rectangle |
Rectangle | newBounds | Rectangle |