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

Manages the adorner helping the manipulation of items.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class AdornerService : GraphServiceBase, IAdornerService

Inheritance: objectGraphServiceBaseAdornerService

Implements: IAdornerService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the AdornerService class.

C#
public AdornerService(IGraphInternal graph)
Parameters:graphIGraphInternal

The graph.

Properties

Gets the adorner angle.

C#
public double AdornerAngle { get; }

Implements: IAdornerService.AdornerAngle

Gets the selection bounds.

C#
public Rect AdornerBounds { get; }

Implements: IAdornerService.AdornerBounds

Gets the inflated selection bounds.

C#
public Rect InflatedAdornerBounds { get; }

Implements: IAdornerService.InflatedAdornerBounds

Return the resize handles activation radius.

C#
public double ResizeActivationRadius { get; }

Implements: IAdornerService.ResizeActivationRadius

Return the rotate handle activation radius.

C#
public double RotateActivationRadius { get; }

Implements: IAdornerService.RotateActivationRadius

Methods

Returns the bottom left resizing point.

C#
public Point BottomLeft()
Returns:

Point

Implements: IAdornerService.BottomLeft()

Returns the bottom right resizing point.

C#
public Point BottomRight()
Returns:

Point

Implements: IAdornerService.BottomRight()

Centers this instance.

C#
public Point Center()
Returns:

Point

Implements: IAdornerService.Center()

Returns the rotation point.

C#
public Point RotationPoint()
Returns:

Point

Implements: IAdornerService.RotationPoint()

Returns the top left point of the adorner.

C#
public Point TopLeft()
Returns:

Point

Implements: IAdornerService.TopLeft()

Returns the top right resizing point.

C#
public Point TopRight()
Returns:

Point

Implements: IAdornerService.TopRight()

Updates the adorner angle.

C#
public virtual void UpdateAdornerAngle(double newAngle = NaN)
Parameters:newAngledouble

Implements: IAdornerService.UpdateAdornerAngle(double)

Updates the bounds positions.

C#
public virtual void UpdateAdornerBounds(Point deltaPosition, double deltaWidth = 0, double deltaHeight = 0)
Parameters:deltaPositionPoint

The delta position.

deltaWidthdouble

The delta width.

deltaHeightdouble

The delta height.

Implements: IAdornerService.UpdateAdornerBounds(Point, double, double)

Updates the adorner bounds.

C#
public virtual void UpdateAdornerBounds(Rect newBounds)
Parameters:newBoundsRect

Implements: IAdornerService.UpdateAdornerBounds(Rect)

Updates the selected items.

C#
public void UpdateSelectedItems(IEnumerable<IDiagramItem> newItems)
Parameters:newItemsIEnumerable<IDiagramItem>

Implements: IAdornerService.UpdateSelectedItems(IEnumerable<IDiagramItem>)