Table of Contents

Class DraggingInfo

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

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

public class DraggingInfo
Inheritance
DraggingInfo
Inherited Members

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.

public DraggingInfo(Point pt = default)

Parameters

pt Point

Properties

Point

Gets or sets the initial location for a dragged object.

public Point Point { get; set; }

Property Value

Point

Remarks

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