New to Telerik UI for WinFormsStart a free 30-day trial

Represents manipulation service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class ResizingService : GraphServiceBase, IResizingService

Inheritance: objectGraphServiceBaseResizingService

Implements: IResizingService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the ResizingService class.

C#
public ResizingService(IGraphInternal graph)
Parameters:graphIGraphInternal

The graph.

Properties

Gets a value indicating whether this instance is resizing.

C#
public bool IsResizing { get; }
Property Value:

True if this instance is resizing; otherwise, false.

Implements: IResizingService.IsResizing

Methods

Calculates the new resize delta.

C#
protected virtual Point CalculateNewDelta(Point newPoint)
Parameters:newPointPoint

The new point.

Returns:

Point

Completes the resize.

C#
public virtual void CompleteResize(Rect finalBounds, Point mousePosition)
Parameters:finalBoundsRect

The final bounds.

mousePositionPoint

The final mouse position.

Implements: IResizingService.CompleteResize(Rect, Point)

Initializes the resize action.

C#
public virtual void InitializeResize(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect adornerBounds, ResizeDirection resizingDirection, Point startPoint)
Parameters:newSelectedItemsIEnumerable<IDiagramItem>

The selected items.

adornerAngledouble

The adorner angle.

adornerBoundsRect

The adorner bounds.

resizingDirectionResizeDirection

The resizing direction.

startPointPoint

The start point.

Implements: IResizingService.InitializeResize(IEnumerable<IDiagramItem>, double, Rect, ResizeDirection, Point)

Resizes to the new point.

C#
public virtual void Resize(Point newPoint)
Parameters:newPointPoint

The new point.

Implements: IResizingService.Resize(Point)

Starts the resize.

C#
public virtual bool StartResize(Point currentPoint)
Parameters:currentPointPoint

The current point.

Returns:

bool

Implements: IResizingService.StartResize(Point)

Updates the parent containers of the selected items containers.

C#
protected virtual void UpdateContainers()

Events

Occurs on resizing completed.

C#
public event EventHandler<ResizingEventArgs> CompleteResizing

Implements: IResizingService.CompleteResizing

Occurs when resizing.

C#
public event EventHandler<ResizingEventArgs> Resizing

Implements: IResizingService.Resizing

Occurs on resizing start.

C#
public event EventHandler<CancelingManipulationEventArgs> StartResizing

Implements: IResizingService.StartResizing