Table of Contents

Class ResizeGesture

Namespace
Icy.Design.Editor
Assembly
IcyUI.Design.dll

A resize in progress: every Update(Point, bool) writes the new attributes through the fast path, so the element follows the pointer live, and the whole gesture is one undo step.

public sealed class ResizeGesture
Inheritance
ResizeGesture
Inherited Members
Extension Methods

Properties

Indicator

Gets the area the element will occupy in its container, in the container's local space, as the placement strategy reports it (Indicator); or null when it reports none.

public RectangleF? Indicator { get; }

Property Value

RectangleF?

Methods

Cancel()

Abandons the resize and puts everything back, leaving no undo entry.

public void Cancel()

Complete()

Keeps the resize as one undo step.

public EditResult Complete()

Returns

EditResult

The outcome; when an update failed, the gesture is rolled back and the failure returned.

Update(Point, bool)

Resizes to the pointer at screenPoint.

public void Update(Point screenPoint, bool snap = true)

Parameters

screenPoint Point

The pointer, in screen space.

snap bool

true to let the placement strategy snap the dragged edge to its guides; false to follow the pointer exactly.