SnappingSettings

References
public sealed class SnappingSettings
Collects all snapping constraint settings.

Constructors

SnappingSettings

#
Create a new settings instance.
public SnappingSettings(
rules,
verticalGap,
horizontalGap,
edgeRadius,
wireRadius,
feedback,
Color
colour
)

Properties

AlignBottomEdges

#
Gets or sets whether the bottom edge of a target box is snapped to other nearby bottom edges.
public bool AlignBottomEdges { get; }

AlignLeftEdges

#
Gets or sets whether the left edge of a target box is snapped to other nearby left edges.
public bool AlignLeftEdges { get; }

AlignMiddles

#
Gets or sets whether the horizontal centre of a target box is snapped to other nearby horizontal centres.
public bool AlignMiddles { get; }

AlignRightEdges

#
Gets or sets whether the right edge of a target box is snapped to other nearby right edges.
public bool AlignRightEdges { get; }

AlignTopEdges

#
Gets or sets whether the top edge of a target box is snapped to other nearby top edges.
public bool AlignTopEdges { get; }

AlignWires

#
Gets or sets whether to straighten wires between objects.
public bool AlignWires { get; }

Colour

#
Gets or sets the feedback hint colour.
public Color Colour { get; }

Current

#
Gets the current user snapping settings.
public static SnappingSettings Current { get; set; }

Default

#
Gets the factory default snapping settings.
public static SnappingSettings Default { get; }

EdgeRadius

#
Gets or sets the search radius for edge and gap alignment.
public int EdgeRadius { get; }

Feedback

#
Gets or sets whether to draw visual feedback when snapping.
public bool Feedback { get; }

HorizontalGapSize

#
Gets or sets the gap size to enforce when snapping horizontal spacing.
public int HorizontalGapSize { get; }

Rules

#
Gets all the active rules.
public SnappingRule Rules { get; }

SpaceHorizontalGaps

#
Gets or sets whether the gaps between the left and right edges of nearby boxes is snapped to a specific size.
public bool SpaceHorizontalGaps { get; }

SpaceVerticalGaps

#
Gets or sets whether the gaps between the top and bottom edges of nearby boxes is snapped to a specific size.
public bool SpaceVerticalGaps { get; }

VerticalGapSize

#
Gets or sets the gap size to enforce when snapping vertical spacing.
public int VerticalGapSize { get; }

WireRadius

#
Gets or sets the search radius for wire alignment.
public int WireRadius { get; }

Methods

SettingsControl

#
public static Control SettingsControl()

SettingsForm

#
public static Form SettingsForm()

WithFeedback

#
Modify these settings to have new feedback states.
public SnappingSettings WithFeedback(
drawFeedback,
Color
colour
)

WithoutRules

#
Modify these settings to exclude the given rules.
public SnappingSettings WithoutRules()

WithRules

#
Modify these settings to include the given rules.
public SnappingSettings WithRules()