documentationfor yFiles for HTML 2.6

Usages of SnapContext

Properties

snapContextin CreateEdgeInputModeGets or sets the snapContext which manages snapping model items to certain coordinates (for instance, other items).
labelSnapContextin GraphEditorInputModeGets or sets the LabelSnapContext instance that handles interactive snapping of ILabels to their owner during drag operations like movements.
snapContextin GraphEditorInputModeGets or sets the SnapContext instance that handles interactive snapping of elements during drag operations like movements.
snapContextin HandleInputModeGets or sets the snapContext which manages snapping model items to certain coordinates (for instance, other items).
snapContextin ItemDropInputModeGets or sets the snapContext which is used to snap the dragged element during the drag.
snapContextin MoveInputModeGets or sets the snapContext which manages snapping model items to certain coordinates (for instance, other items).

Method Parameters

CreateEdgeInputMode ()in CreateEdgeInputModeCreates a new instance that will use the IGraph from the inputModeContext to create edges in.
GraphEditorInputMode ()in GraphEditorInputModeCreates a new instance that is not bound to an existing graph or selection, initially.
onLabelSnapContextChanged (SnapContext, SnapContext)in GraphEditorInputModeCalled when the labelSnapContext property context changed.
onSnapContextChanged (SnapContext, SnapContext)in GraphEditorInputModeCalled when the snapContext property context changed.
HandleInputMode ()in HandleInputModeCreates a new mode with no handles initially.
ItemDropInputMode (string, )in ItemDropInputModeInitializes a new instance of the ItemDropInputMode<T> class for the expected data type.
ItemDropInputMode (string, )in ItemDropInputModeInitializes a new instance of the ItemDropInputMode<T> class for the expected data type.
LabelDropInputMode (string, )in LabelDropInputModeConstructs a new instance of class DropInputMode for the expected data type.
LabelDropInputMode (string, )in LabelDropInputModeConstructs a new instance of class DropInputMode for the expected data type.
LabelDropInputMode ()in LabelDropInputModeConstructs a new instance of class LabelDropInputMode for the type ILabel.
MoveInputMode ()in MoveInputModeInitializes a new instance of the MoveInputMode class.
MoveLabelInputMode ()in MoveLabelInputModeCreates a new instance that will move labels in the graph retrieved from the inputModeContext.
NodeDropInputMode ()in NodeDropInputModeInitializes a new instance of the NodeDropInputMode class for INodes.
NodeDropInputMode (string, )in NodeDropInputModeInitializes a new instance of the NodeDropInputMode class for the expected data type.
NodeDropInputMode (string, )in NodeDropInputModeInitializes a new instance of the NodeDropInputMode class for the expected data type.
PortDropInputMode (string, )in PortDropInputModeConstructs a new instance of class DropInputMode for the expected data type.
PortDropInputMode (string, )in PortDropInputModeConstructs a new instance of class DropInputMode for the expected data type.
PortDropInputMode ()in PortDropInputModeConstructs a new instance of class PortDropInputMode for the type IPort.
ReparentStripeInputMode ()in ReparentStripeInputModeInitializes a new instance of the ReparentStripeInputMode class.
StripeDropInputMode ()in StripeDropInputModeInitializes a new instance of the NodeDropInputMode class for INodes.
StripeDropInputMode (string, )in StripeDropInputModeInitializes a new instance of the StripeDropInputMode class for the expected data type.
StripeDropInputMode (string, )in StripeDropInputModeInitializes a new instance of the StripeDropInputMode class for the expected data type.

Extending Types

GraphSnapContextConcrete SnapContext implementation which handles snapping movement for IGraph items.
LabelSnapContextManages interactive snapping of ILabels to their owner during drag operations like movements.