[]
        
(Showing Draft Content)

FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.-ctor

ChildChangeUndoAction Constructor

ChildChangeUndoAction(SheetView, ElementWindowless)

Creates a new undo action for moving or sizing a child control.

Declaration
public ChildChangeUndoAction(SheetView sheetView, ElementWindowless shape)
Public Sub New(sheetView As SheetView, shape As ElementWindowless)
Parameters
Type Name Description
SheetView sheetView
ElementWindowless shape

ChildChangeUndoAction(SheetView, ElementWindowless, bool)

Creates a new undo action for changing the specified shape or cell note in the specified SheetView.

Declaration
public ChildChangeUndoAction(SheetView sheetView, ElementWindowless shape, bool attachUIChangeCompleteHandler)
Public Sub New(sheetView As SheetView, shape As ElementWindowless, attachUIChangeCompleteHandler As Boolean)
Parameters
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)

Remarks

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).

ChildChangeUndoAction(int, int, int, int, float)

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).

Declaration
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)
Parameters
Type Name Description
int dx

Horizontal change

int dy

Vertical change

int dw

Width change

int dh

Height change

float dr

Rotation angle change

ChildChangeUndoAction(Control, Rectangle, Rectangle)

Creates a new undo action for moving or sizing a child control.

Declaration
public ChildChangeUndoAction(Control ctl, Rectangle oldBounds, Rectangle newBounds)
Public Sub New(ctl As Control, oldBounds As Rectangle, newBounds As Rectangle)
Parameters
Type Name Description
Control ctl

Control

Rectangle oldBounds

Rectangle

Rectangle newBounds

Rectangle