Class ResizingService
Represents manipulation service.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class ResizingService : GraphServiceBase, IResizingService
Constructors
ResizingService(IGraphInternal)
Initializes a new instance of the ResizingService class.
Declaration
public ResizingService(IGraphInternal graph)
Parameters
IGraphInternal
graph
The graph. |
Properties
IsResizing
Gets a value indicating whether this instance is resizing.
Declaration
public bool IsResizing { get; }
Property Value
System.Boolean
|
Implements
Methods
CalculateNewDelta(Point)
Calculates the new resize delta.
Declaration
protected virtual Point CalculateNewDelta(Point newPoint)
Parameters
System.Windows.Point
newPoint
The new point. |
Returns
System.Windows.Point
|
CompleteResize(Rect, Point)
Completes the resize.
Declaration
public virtual void CompleteResize(Rect finalBounds, Point mousePosition)
Parameters
System.Windows.Rect
finalBounds
The final bounds. |
System.Windows.Point
mousePosition
The final mouse position. |
Implements
InitializeResize(IEnumerable<IDiagramItem>, Double, Rect, ResizeDirection, Point)
Initializes the resize action.
Declaration
public virtual void InitializeResize(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect adornerBounds, ResizeDirection resizingDirection, Point startPoint)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
newSelectedItems
The selected items. |
System.Double
adornerAngle
The adorner angle. |
System.Windows.Rect
adornerBounds
The adorner bounds. |
ResizeDirection
resizingDirection
The resizing direction. |
System.Windows.Point
startPoint
The start point. |
Implements
Resize(Point)
Resizes to the new point.
Declaration
public virtual void Resize(Point newPoint)
Parameters
System.Windows.Point
newPoint
The new point. |
Implements
StartResize(Point)
Starts the resize.
Declaration
public virtual bool StartResize(Point currentPoint)
Parameters
System.Windows.Point
currentPoint
The current point. |
Returns
System.Boolean
|
Implements
UpdateContainers()
Updates the parent containers of the selected items containers.
Declaration
protected virtual void UpdateContainers()
Events
CompleteResizing
Occurs on resizing completed.
Declaration
public event EventHandler<ResizingEventArgs> CompleteResizing
Event Type
System.EventHandler<ResizingEventArgs>
|
Implements
Resizing
Occurs when resizing.
Declaration
public event EventHandler<ResizingEventArgs> Resizing
Event Type
System.EventHandler<ResizingEventArgs>
|
Implements
StartResizing
Occurs on resizing start.
Declaration
public event EventHandler<CancelingManipulationEventArgs> StartResizing
Event Type
System.EventHandler<CancelingManipulationEventArgs>
|