Search
DiagramView Methods
 


 Public Methods

  Name Description

beginEdit

Begins in-place editing of the specified object.

cancelDrag

Cancels all current drag operations.

clearTooltip

Forces the removal of any created tooltips from the diagram canvas.

copyToClipboard

Copies the current selection of items to the clipboard.

create

Creates and initializes a new DiagramView from the specified element. This method is static and can be called without creating an instance of the class.

cutToClipboard

Cuts the currently selected items to the clipboard.

dispose

Control.dispose override.

endEdit

Exits the in-place editing mode and either accepts or rejects the changes made to the item's text.

find

Returns the specified DiagramView object. This member is static and can be invoked without creating an instance of the class.

fromJson

Loads the diagram from a JSON string.

initialize

Control.initialize override.

loadFromXml

Loads the diagram from an XML file.

pasteFromClipboard

Pastes diagram items from the clipboard.

print

Exports the diagram as a list of images to a new HTML document and opens the browser's print dialog.

printPreview

Exports the diagram as a list of images to a new HTML document.

record

Starts recording mouse and keyboard events for subsequent replay.

replay

Replays a sequence of recorded mouse and keyboard events created by record and stopRecording methods.

saveToXml

Saves the diagram to an XML file.

scrollTo

Scrolls the diagram to the specified point.

setScroll

IZoomTarget implementation

setZoomFactorPivot

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

stopRecording

Stops recording mouse and keyboard events.

toJson

Saves the diagram to a JSON string.

zoomToFit

Zooms the view to fit the Diagram contents in component's area.

zoomToRect

Zooms and scrolls the view to fit the specified Diagram region in component's area.

 See Also