Class MoveResizeController
Helper Control which is used to resize the GraphicCellControl
Inheritance
System.Object
MoveResizeController
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Spreadsheet.GraphicCells
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class MoveResizeController : IDisposable
Constructors
MoveResizeController(GraphicModel)
Initializes a new instance of the MoveResizeController class.
Declaration
public MoveResizeController(GraphicModel graphicModel)
Parameters
Type | Name | Description |
---|---|---|
GraphicModel | graphicModel | An instance of GraphicModel |
Methods
Dispose()
Dispose all the resources used by the MoveResizeController class
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Move(Int32, Int32, ShapeImpl)
Method to move the ShapeImpl.
Declaration
protected virtual void Move(int diffX, int diffY, ShapeImpl shape)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | diffX | X-axis difference |
System.Int32 | diffY | Y-axis difference |
ShapeImpl | shape | An instance of ShapeImpl |
MoveUsingKey(PreviewKeyDownEventArgs, GraphicCellControl)
Move the GraphicCellControl when appropriate key is pressed
Declaration
protected virtual void MoveUsingKey(PreviewKeyDownEventArgs e, GraphicCellControl graphicCellControl)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PreviewKeyDownEventArgs | e | An System.Windows.Input.KeyEventArgs that contains the event data. |
GraphicCellControl | graphicCellControl | An instance of GraphicCellControl |
Resize(Int32, Int32, ShapeImpl)
To resize the ShapeImpl with X and Y axis.
Declaration
protected virtual void Resize(int diffX, int diffY, ShapeImpl shape)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | diffX | X-axis difference |
System.Int32 | diffY | Y-axis difference |
ShapeImpl | shape | An instance of ShapeImpl |
ResizeUsingKey(PreviewKeyDownEventArgs, GraphicCellControl)
Used to resize the GraphicCellControl when appropriate key is pressed
Declaration
protected virtual void ResizeUsingKey(PreviewKeyDownEventArgs e, GraphicCellControl graphicCellControl)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PreviewKeyDownEventArgs | e | An System.Windows.Input.KeyEventArgs that contains the event data. |
GraphicCellControl | graphicCellControl | An instance of GraphicCellControl |
Implements
System.IDisposable