Class
ResizingService

Represents manipulation service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class ResizingService : GraphServiceBase, IResizingService

Inheritance: objectGraphServiceBaseResizingService

Implements: IResizingService

Inherited Members GraphServiceBase.Graph

Constructors

ResizingService(IGraphInternal)

Initializes a new instance of the ResizingService class.

Declaration

cs-api-definition
public ResizingService(IGraphInternal graph)

Parameters

graph

IGraphInternal

The graph.

Properties

IsResizing

Gets a value indicating whether this instance is resizing.

Declaration

cs-api-definition
public bool IsResizing { get; }

Property Value

bool

True if this instance is resizing; otherwise, false.

Implements IResizingService.IsResizing

Methods

CalculateNewDelta(Point)

Calculates the new resize delta.

Declaration

cs-api-definition
protected virtual Point CalculateNewDelta(Point newPoint)

Parameters

newPoint

Point

The new point.

Returns

Point

CompleteResize(Rect, Point)

Completes the resize.

Declaration

cs-api-definition
public virtual void CompleteResize(Rect finalBounds, Point mousePosition)

Parameters

finalBounds

Rect

The final bounds.

mousePosition

Point

The final mouse position.

Implements IResizingService.CompleteResize(Rect, Point)

InitializeResize(IEnumerable<IDiagramItem>, double, Rect, ResizeDirection, Point)

Initializes the resize action.

Declaration

cs-api-definition
public virtual void InitializeResize(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect adornerBounds, ResizeDirection resizingDirection, Point startPoint)

Parameters

newSelectedItems

IEnumerable<IDiagramItem>

The selected items.

adornerAngle

double

The adorner angle.

adornerBounds

Rect

The adorner bounds.

resizingDirection

ResizeDirection

The resizing direction.

startPoint

Point

The start point.

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

Resize(Point)

Resizes to the new point.

Declaration

cs-api-definition
public virtual void Resize(Point newPoint)

Parameters

newPoint

Point

The new point.

Implements IResizingService.Resize(Point)

StartResize(Point)

Starts the resize.

Declaration

cs-api-definition
public virtual bool StartResize(Point currentPoint)

Parameters

currentPoint

Point

The current point.

Returns

bool

Implements IResizingService.StartResize(Point)

UpdateContainers()

Updates the parent containers of the selected items containers.

Declaration

cs-api-definition
protected virtual void UpdateContainers()

Events

CompleteResizing

Occurs on resizing completed.

Declaration

cs-api-definition
public event EventHandler<ResizingEventArgs> CompleteResizing

Event Value

EventHandler<ResizingEventArgs>

Implements IResizingService.CompleteResizing

Resizing

Occurs when resizing.

Declaration

cs-api-definition
public event EventHandler<ResizingEventArgs> Resizing

Event Value

EventHandler<ResizingEventArgs>

Implements IResizingService.Resizing

StartResizing

Occurs on resizing start.

Declaration

cs-api-definition
public event EventHandler<CancelingManipulationEventArgs> StartResizing

Event Value

EventHandler<CancelingManipulationEventArgs>

Implements IResizingService.StartResizing