The LabelSnapContext type exposes the following members.

Constructors

  NameDescription
Public methodLabelSnapContext
Initializes a new instance of the LabelSnapContext class.

Methods

  NameDescription
Public methodAddSnapLine
Adds the given snapLine to the snap line collection of this context.
Public methodCancelDrag
Called when a drag has been canceled.
(Inherited from SnapContext.)
Protected methodCleanUp
Performs clean up procedures.
(Overrides SnapContext..::..CleanUp()()()().)
Public methodCreateSnapResultModelItemInstaller (Inherited from SnapContext.)
Public methodCreateSnapResultsModelManager
Helper method that creates the a CollectionModelManager<(Of <(<'T>)>)> that can be used to present the current SnapResults in the provided CanvasControl.
(Inherited from SnapContext.)
Public methodDisableSnapping
This method can be called by the IInputMode while this instance IsInitialized alternatively to HandleMove(PointD).
(Overrides SnapContext..::..DisableSnapping()()()().)
Public methodDragFinished
Called when a drag has been successfully finished.
(Inherited from SnapContext.)
Public methodDragged
This method needs to be called by the client IInputMode that initialized this instance after it has performed the actual move operation with the adjusted coordinates after a call to HandleMove(PointD).
(Inherited from SnapContext.)
Public methodDragInitialized
Collects a list of snap lines.
(Overrides SnapContext..::..DragInitialized()()()().)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHandleMove
Handles a move.
(Inherited from SnapContext.)
Public methodInitializeDrag
Called by IInputMode implementations when an interactive drag is started.
(Overrides SnapContext..::..InitializeDrag(IInputModeContext, PointD).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCleanUp
Raises the CleanUp()()()() event.
(Inherited from SnapContext.)
Protected methodOnCollectSnapLines
Raises the CollectSnapLines event.
Protected methodOnCollectSnapResults
Raises the CollectSnapResults event.
(Inherited from SnapContext.)
Protected methodOnInitialized
Raises the Initialized event.
(Inherited from SnapContext.)
Protected methodOnInitializing
Raises the Initializing event.
(Inherited from SnapContext.)
Protected methodProcessSnapResults
Chooses the current SnapResults from a temporary list.
(Inherited from SnapContext.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrapContext
Helper method that wraps the given context so that a Lookup(Type) query on the wrapped context for the SnapContext type yields this instance.
(Overrides SnapContext..::..WrapContext(IInputModeContext).)

Properties

  NameDescription
Public propertyCollectAllEdgeDistanceSnapLines
Determines whether this instance should collect snap lines in parallel to the edge path of the label owner at the distance of other edge labels in the graph.
Public propertyCollectAllNodeDistanceSnapLines
Determines whether this instance should collect snap lines in parallel to the border of the label owner at the distance of other node labels in the graph.
Public propertyCollectEdgePathSnapLines
Determines whether this instance should collect snap lines on the edge path.
Public propertyCollectInitialLocationSnapLines
Determines whether this instance should collect snap lines for the initial position of a label.
Public propertyCollectNodeShapeSnapLines
Determines whether this instance should collect six snap lines, two through the center and four through the border sides of the label owner.
Public propertyCollectOwnEdgeDistanceSnapLines
Determines whether this instance should collect two snap lines in parallel to the edge path of the label owner at the initial distance of the edge label.
Public propertyCollectOwnNodeDistanceSnapLines
Determines whether this instance should collect four snap lines in parallel to the owner's borders at the initial label distance.
Public propertyCollectSameOwnerEdgeDistanceSnapLines
Determines whether this instance should collect snap lines in parallel to the edge path of the label owner at the distances of all edge labels of that owner.
Public propertyCollectSameOwnerNodeDistanceSnapLines
Determines whether this instance should collect snap lines in parallel to the border of the label owner at the distance of other node labels of that owner.
Protected propertyCurrentInputModeContext
Gets the current input mode context.
(Inherited from SnapContext.)
Public propertyEnabled
Gets or sets a value indicating whether this SnapContext is enabled.
(Inherited from SnapContext.)
Public propertyIsInitialized
Whether the context is initialized.
(Inherited from SnapContext.)
Public propertyIsInitializing
Gets or sets a value indicating whether this instance is currently initializing.
(Inherited from SnapContext.)
Public propertyOriginalLocation
Gets the original location of the mouse at the time the gesture was initialized.
(Inherited from SnapContext.)
Public propertySnapDistance
Sets the global snap distance, which is the maximum distance between the current mouse coordinates and the coordinates to which the mouse will snap. The distance is interpreted in view coordinates.
(Inherited from SnapContext.)
Public propertySnapEdgeLabels
Specifies whether this context will automatically snap the edge labels to snap lines.
Public propertySnapLineExtension
Gets or sets the amount by which snap lines that are induced by existing edge segments are being extended.
Public propertySnapLines
The collection of the snap lines that have been added to this context.
Public propertySnapNodeLabels
Specifies whether this context will automatically snap the node labels to snap lines.
Public propertySnapResults
The collection of SnapResults.
(Inherited from SnapContext.)
Public propertyVisualizeSnapResults
Gets or sets a value indicating whether to visualize the snap results.
(Inherited from SnapContext.)

Events

  NameDescription
Public eventCleanedUp
Occurs when this instance has been cleaned up.
(Inherited from SnapContext.)
Public eventCollectSnapLines
Occurs every time this instance has been initialized to collect SnapLines.
Public eventCollectSnapResults
Dispatched during moving. The moving model items must register for this event, preferably in the InitializeDrag(IInputModeContext) method of the IDragHandler. The event handler has to add SnapResults for the moving object to the list.
(Inherited from SnapContext.)
Public eventInitialized
Occurs when this instance has been initialized.
(Inherited from SnapContext.)
Public eventInitializing
Occurs when this instance is about to be initialized.
(Inherited from SnapContext.)

See Also