Concrete SnapContext implementation which handles snapping movement for IGraph items.
Namespace: yWorks.yFiles.UI.InputAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public class GraphSnapContext : SnapContext |
| Visual Basic |
|---|
Public Class GraphSnapContext _ Inherits SnapContext |
Remarks
This class provides a set of properties that determine the way snapping operations are being performed in the context of IGraphs.
IPositionHandler implementations and the like can use the following idiom to retrieve instances of this class:
CopyC#
var snapContext = inputModeContext.Get<SnapContext>() as GraphSnapContext; if (snapContext != null && snapContext.IsInitializing) { ...
Related Demo Applications
Inheritance Hierarchy
System..::..Object
yWorks.Canvas.Input..::..SnapContext
yWorks.yFiles.UI.Input..::..GraphSnapContext
yWorks.Canvas.Input..::..SnapContext
yWorks.yFiles.UI.Input..::..GraphSnapContext