Search
DiagramView Methods
 


 Public Methods

  Name Description

AdoptHostedControls

Adopts controls hosted in other views and moves them to this view.

Animate

Animates the view state.

BeginEdit

Overloaded. Enters inplace-edit mode, letting users edit the text of the specified item.

BringIntoView

Overloaded.  

CancelDrag

Cancels the current drag operation.

ClientToDoc

Overloaded. Transforms points from the client coordinate space to the document coordinate space.

CopyToClipboard

Overloaded. Copies the currently selected items to the Windows clipboard.

CreatePrintDocument

Creates a PrintDocument object that can be used to print or preview the current diagram.

CutToClipboard

Overloaded. Cuts the currently selected items to the Windows clipboard.

DisposePrintDocument

Detaches the diagram's BeginPrint and PrintPage event handlers from the specified PrintDocument, created by a previous call to the CreatePrintDocument method.

DocToClient

Overloaded. Transforms points from the document coordinate space to the client coordinate space.

EndEdit

Exits inplace-edit mode and either accepts or rejects the changes made to the item's text.

LoadFromFile

Loads a diagram from a file.

LoadFromStream

Loads the Diagram document from a stream.

LoadFromString

Loads the diagram data from a string.

LoadFromXml

Overloaded. Loads the diagram from an XML.

PasteFromClipboard

Overloaded. Pastes diagram items from the Windows clipboard.

Print

Overloaded. Prints the current diagram on a printer selected by the user.

PrintPreview

Overloaded. Displays the standard .NET print-preview form.

PrintPreviewEx

Overloaded. Displays the extended MindFusion.Diagramming print-preview window or a custom preview form.

RecreateCacheImage

Recreates the cache bitmap, containing an image of the items that are not affected by the currently performed modification. This image is blitted to screen while dragging items, and the modified items are drawn over it.

SaveToFile

Saves the diagram into a file.

SaveToStream

Saves the diagram data into a .NET stream.

SaveToString

Saves the diagram as an ASCII string.

SaveToXml

Overloaded. Saves the diagram to an XML document.

ScrollTo

Overloaded.  

SetZoomFactor

Sets the zoom factor, preserving the on-screen position of the specified diagram point.

StartInteraction

Starts the specified interactive operation. Subsequent mouse movements will modify or create the item specified through the InteractionState instance.

ZoomIn

Zooms document's items thus making them appear closer.

ZoomOut

Zooms the diagram out making items appear further away.

ZoomToFit

Zooms the view to fit the diagram contents in current viewport.

ZoomToRect

Overloaded.  

 Protected Methods

  Name Description

CreateHandle

Control.CreateHandle override.

Dispose

Cleans up any resources being used.

IsInputKey

Control.IsInputKey override.

OnCopyHostedControl

Raises the CopyHostedControl event.

OnCreateEditControl

Raises the CreateEditControl event.

OnDeserializeControl

Raises the DeserializeControl event.

OnDestroyEditControl

Raises the DestroyEditControl event.

OnDiagramChanged

Raises the DiagramChanged event.

OnDragDrop

Control.OnDragDrop override.

OnDragEnter

Control.OnDragEnter override.

OnDragLeave

Control.OnDragLeave override.

OnDragOver

Control.OnDragOver override.

OnDrawMagnifier

Raises the DrawMagnifier event.

OnEnabledChanged

Control.OnEnabledChanged override.

OnEnterInplaceEditMode

Raises the EnterInplaceEditMode event.

OnHandleCreated

Control.WndProc override. (Inherited from TouchControl.)

OnKeyDown

Control.OnKeyDown override.

OnKeyPress

Control.OnKeyPress override.

OnKeyUp

Control.OnKeyUp override.

OnLayout

Control.OnLayout override.

OnLeaveInplaceEditMode

Raises the LeaveInplaceEditMode event.

OnLostFocus

Control.OnLostFocus override.

OnMouseDown

Control.OnMouseDown override.

OnMouseMove

Control.OnMouseMove override.

OnMouseUp

Control.OnMouseUp override.

OnMouseWheel

Control.OnMouseWheel override.

OnPaint

Control.OnPaint override.

OnPaintBackground

Control.OnPaintBackground override.

OnPaintControl

Raises the PaintControl event.

OnRightToLeftChanged

Raises the RightToLeftChanged event.

OnScrollChanged

Raises the ScrollChanged event.

OnTouchDown

TouchControl.OnTouchDown override.

OnTouchMove

TouchControl.OnTouchMove override.

OnTouchUp

TouchControl.OnTouchUp override.

OnZoomFactorChanged

Raises the ZoomFactorChanged event.

OverrideViewUI

Can be overriden by inheriting classes that want to implement completely new input handling and rendering.

WndProc

Control.WndProc override.

 See Also