IDragAndDropManager Class

The drag and drop manager helps to use standard drag and drop methods from PCBI.

Definition

Namespace: PCBI.Automation.DragAndDrop
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public class IDragAndDropManager
Inheritance
Object    IDragAndDropManager

Constructors

IDragAndDropManager Create an instance of drag and drop manager.

Properties

DockToAnchorPerAxis If true, the dock is done to an anchor point for x and y separately If false, the dock is only done to the point if dx AND dy are smaller than 20 mils (helperLinesAllowDistanceDockClient)
DrawDistanceColor Color for distance lines.
DrawOversizePolyColor Color for oversized polygon (distance polygon).
DrawPenColor Color of helper lines and dashed elements (e.g. rotation and offset line).
DrawPolygonColor Color of current polygon outline.
DrawTextColor Color for text, e.g. angle of rotation.
FillPolygonColor Color of current polygon filling.
MinDistance Minimum distance to set current element back e.g. by move mode.
MinDistanceProfile Minimum distance to set current element back e.g. by move mode.
SearchRadiusForAlignmentLines Search radius for neighbour lines to align on same X/Y in world coordinates.
SearchRadiusForAnchorPointsClient Search radius for anchour points near current element in client coordinates
ShowDistance Show distance to neighbours.
ShowDistanceZeroCircleSizeWorld Show distance zero circle size in world size (Draw a small circle by touching points).
ShowOversizePolyForMinDistance If MinDistance > 0 it shows a extra polygon with distance value.

Methods

AddAnchorPoint Add an new anchor point.
ClearAnchorPoints Remove all anchor points.
Dispose Dispose all resources.
End End the drag end drop process.
PointInButton Check a point is in button area (e.g. do not start new drag and drop process while user click on an button).
SetAnchorPoints Sets a List of AnchorPoints. Attention: Lists are not cloned, ClearAnchorPoints(true) will manipulate passed lists!
SetProfilePoly Use profile for difference distance values.
Start Start the drag and drop process for a drag and drop object.

Events

DragDropBegin Event at the start of a Drag Action (MouseDown) ///
DragDropEnd Event at the end of drag and drop action (MouseUp).
DragDropFinishRequest Called when the object should be released (e.g. by ESC) => End() is called automatically => Clean Up your objects
DragDropMove Event while moving drag and drop element.
DragDropStart Event at the end of the start method, when the object is initialized

Extension Methods

See Also