The DiagramSurface type exposes the following members.
Methods
Name | Description | |
---|---|---|
ApplyLayoutAlgorithm |
Applies the given layout algorithm to the diagram, re-formats all the connections and takes a snapshot
for undo/redo integration.
| |
CancelLastSnapshot |
Cancels the last snapshot that was taken so that it is ignored by the undo command.
| |
ClearDirty |
Clears the IsDirty flag. Call this method when saving the diagram.
| |
FindConnectionElement |
Returns the DiagramConnectionElement that represents the visual for the given
IDiagramConnection. This method returns null if no such DiagramConnectionElement
can be found.
| |
FindElementAtPoint |
Returns the DiagramElement that interescts with the given Point. This could
be a DiagramNodeElement or a DiagramConnectionElement.
Returns null if there is no DiagramElement at the given point.
| |
FindMouseOverElement |
Returns the DiagramElement that the mouse is currently over. This could
be a DiagramNodeElement or a DiagramConnectionElement.
Returns null if the mouse is not currently over any DiagramElement.
| |
FindNodeElement |
Returns the DiagramNodeElement that represents the visual for the given IDiagramNode.
This method returns null if no such DiagramNodeElement can be found.
| |
GetLogicalBounds |
Gets the diagram model bounds corresponding to a rectangle on the display
(in control coordinates). This method is used to compensate for the effects
of zooming and scrolling on a DiagramSurface.
| |
GetMousePosition |
Returns a Point reflecting the position of the mouse pointer relative to the (0, 0)
coordinate on this DiagramSurface.
| |
GetPhysicalBounds |
Gets the display rectangle (in control coordinates) corresponding to a region
of the diagram model. This method is used to compensate for the effects
of zooming and scrolling on a DiagramSurface.
| |
GetViewport |
Gets the viewport (the part of the diagram which is visible).
| |
InstallLicense |
Performs manual licensing for specialized deployment scenarios.
| |
OnApplyTemplate |
Called by the framework when a template is applied to the control.
(Overrides FrameworkElement..::.OnApplyTemplate()()().) | |
OnKeyDown |
Called when a key is pressed while this DiagramSurface has focus.
(Overrides UIElement..::.OnKeyDown(KeyEventArgs).) | |
OnKeyUp |
Called when a key is released while this DiagramSurface has focus.
(Overrides UIElement..::.OnKeyUp(KeyEventArgs).) | |
OnMouseDown |
Invoked when an unhandled Mouse.MouseDown attached event reaches an element in
its route that is derived from this class.
(Overrides UIElement..::.OnMouseDown(MouseButtonEventArgs).) | |
OnMouseMove |
Invoked when an unhandled Mouse.MouseUp attached event reaches an element in
its route that is derived from this class.
(Overrides UIElement..::.OnMouseMove(MouseEventArgs).) | |
OnMouseUp |
Invoked when an unhandled Mouse.MouseUp attached event reaches an element in
its route that is derived from this class.
(Overrides UIElement..::.OnMouseUp(MouseButtonEventArgs).) | |
ResetUndo |
Resets the undo feature by clearing all the snapshots that have been made up to now.
| |
SetDirty |
Marks the diagram as dirty (having changed).
| |
SetViewport |
Sets the viewport (the part of the diagram which is visible).
| |
SizeToFit |
Sets the viewport of the ScrollViewer to fit the entire diagram of this DiagramSurface.
| |
TakeSnapshot |
Saves the current state of the diagram that this DiagramSurface is displaying.
This saved state is used for undo purposes. This method should be called AFTER an action
has modified the DiagramSurface.
|