ClassResizingService
Represents manipulation service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class ResizingService : GraphServiceBase, IResizingService
Inheritance: objectGraphServiceBaseResizingService
Implements:
Inherited Members
Constructors
ResizingService(IGraphInternal)
Initializes a new instance of the ResizingService class.
Declaration
public ResizingService(IGraphInternal graph)
Parameters
graph
The graph.
Properties
IsResizing
Gets a value indicating whether this instance is resizing.
Declaration
public bool IsResizing { get; }
Property Value
True if this instance is resizing; otherwise, false.
Implements
Methods
CalculateNewDelta(Point)
Calculates the new resize delta.
Declaration
protected virtual Point CalculateNewDelta(Point newPoint)
Parameters
newPoint
Point
The new point.
Returns
Point
CompleteResize(Rect, Point)
Completes the resize.
Declaration
public virtual void CompleteResize(Rect finalBounds, Point mousePosition)
Parameters
finalBounds
Rect
The final bounds.
mousePosition
Point
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
newSelectedItems
The selected items.
adornerAngle
The adorner angle.
adornerBounds
Rect
The adorner bounds.
resizingDirection
The resizing direction.
startPoint
Point
The start point.
Implements
Resize(Point)
Resizes to the new point.
Declaration
public virtual void Resize(Point newPoint)
Parameters
newPoint
Point
The new point.
Implements
StartResize(Point)
Starts the resize.
Declaration
public virtual bool StartResize(Point currentPoint)
Parameters
currentPoint
Point
The current point.
Returns
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 Value
Implements
Resizing
Occurs when resizing.
Declaration
public event EventHandler<ResizingEventArgs> Resizing
Event Value
Implements
StartResizing
Occurs on resizing start.
Declaration
public event EventHandler<CancelingManipulationEventArgs> StartResizing
Event Value
Implements