Constructors
SnappingAction
#public SnappingAction(float dx, float dy, string text, PointF point, TextAnchor anchor, LineF[] lines)
Create a new snapping action. This is somewhat tricky, consider using one of the static creation methods.
Parameters:
| dx (float) | |
| dy (float) | |
| text (string) | |
| point (PointF) | |
| anchor (TextAnchor) | |
| lines (LineF[]) |
Properties
Methods
CreateBottomAlignAction
#public static SnappingAction CreateBottomAlignAction(RectangleF source, RectangleF target, float dy)
Create a snapping action for bottom box alignment.
Parameters:
| source (RectangleF) | |
| target (RectangleF) | |
| dy (float) |
CreateCentreAlignAction
#public static SnappingAction CreateCentreAlignAction(RectangleF source, RectangleF target, float dx)
Create a snapping action for horizontal centre box alignment.
Parameters:
| source (RectangleF) | |
| target (RectangleF) | |
| dx (float) |
CreateHorizontalGapActionAbove
#public static SnappingAction CreateHorizontalGapActionAbove(RectangleF source, RectangleF target, int gapSize, float dx)
Create a snapping action for horizontal gap spacing with the feedback on top.
CreateHorizontalGapActionBelow
#public static SnappingAction CreateHorizontalGapActionBelow(RectangleF source, RectangleF target, int gapSize, float dx)
Create a snapping action for horizontal gap spacing with the feedback underneath.
CreateLeftAlignAction
#Create a snapping action for left box alignment.
Parameters:
| source (RectangleF) | |
| target (RectangleF) | |
| dx (float) |
CreateRightAlignAction
#Create a snapping action for right box alignment.
Parameters:
| source (RectangleF) | |
| target (RectangleF) | |
| dx (float) |
CreateStraightenWireAction
#Create a wire straightening action.
Parameters:
| source (PointF) | |
| target (PointF) |
CreateTopAlignAction
#Create a snapping action for left box alignment.
Parameters:
| source (RectangleF) | |
| target (RectangleF) | |
| dy (float) |
CreateVerticalGapActionOnLeft
#public static SnappingAction CreateVerticalGapActionOnLeft(RectangleF source, RectangleF target, int gapSize, float dy)
Create a snapping action for vertical gap spacing with the label on the left.
CreateVerticalGapActionOnRight
#public static SnappingAction CreateVerticalGapActionOnRight(RectangleF source, RectangleF target, int gapSize, float dy)
Create a snapping action for vertical gap spacing with the label on the right.
HorizontalOrthoAction
#Create a horizontal ortho constraint. This one has no deflection, but it does have feedback.
Parameters:
| origin (PointF) | |
| frame (RectangleF) |
SmallerMagnitude
#Return the action with the smaller magnitude.
Parameters:
| a (SnappingAction) | |
| b (SnappingAction) |
VerticalOrthoAction
#Create a vertical ortho constraint. This one has no deflection, but it does have feedback.
Parameters:
| origin (PointF) | |
| frame (RectangleF) |