Class DraggingInfo

GoDiagram®
v10.0.12
by Northwoods Software®

This is used in dragging methods to remember initial locations, for relative positioning and for cancellation.

Inheritance
DraggingInfo
Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.WinForms.dll
Syntax
public class DraggingInfo
Remarks

You do not typically need to create these unless you are overriding tools.

ComputeEffectiveCollection(IEnumerable<Part>, DraggingOptions) returns a Map of Parts and DraggingInfo, which is used as an argument for methods like ComputeMove(Part, Point, DraggingOptions).

MoveParts(IEnumerable<Part>, Point, bool, DraggingOptions) constructs a dictionary of Parts and DraggingInfo to record each Part's location offset during moves.

Constructors

DraggingInfo(Point)

Optionally takes a Point that sets Point.

Declaration
public DraggingInfo(Point pt = default)
Parameters
Type Name Description
Point pt

Properties

Point

Gets or sets the initial location for a dragged object.

Declaration
public Point Point { get; set; }
Property Value
Type Description
Point
Remarks

This is most commonly the Location of the dragged object, or a rounded Part.Location if snapping.