Search
DiagramView Members
Constructors Properties Methods Events
 


A Blazor component that displays the content of a Diagram object.

The following tables list the members exposed by the DiagramView type.

 Public Constructors

  Name Description

DiagramView

Initializes a new instance of the DiagramView class.

 Public Properties

  Name Description

AllowInplaceEdit

Gets or sets whether users are allowed to edit the text of diagram items.

AutoHandlesItem

Gets or sets the diagram item whose selection handles are currently being displayed in response to mouse hover.

AutoHandlesMargins

Gets or sets the distance from the node's border at which the mouse is still considered over the node, when determining whether to hide the auto handles of a node.

AutoScroll

Gets or sets a value indicating whether auto scrolling of the document area is enabled.

AutoScrollAmount

Gets or sets the amount by which to auto-scroll the view when the mouse leaves the view boundaries while drawing.

Behavior

Gets or sets a value indicating how the control responds to user actions.

Capture

For internal use.

Cursor

Gets or sets the mouse cursor.

CustomBehavior

Gets or sets a custom Behavior object specifying how MindFusion.Diagramming responds to mouse input.

CustomLinkType

Gets or sets the type of a MindFusion.Diagramming.DiagramLink derived class whose instance should be created when a user starts drawing.

CustomNodeType

Gets or sets the type of a MindFusion.Diagramming.DiagramNode derived class whose instance should be created when a user starts drawing.

DelKeyAction

Gets or sets a value indicating the action that should be performed when the user hits the Del key.

Diagram

Gets or sets the diagram displayed by this view.

DpiX

Gets the horizontal dots-per-inch resolution of this view.

DpiY

Gets the vertical dots-per-inch resolution of this view.

DragIndicatorOpacity

Gets or sets the opacity of ghost image displayed during drag-and-drop from NodeListView.

HorizontalDropAlignment

Gets or sets the horizontal placement of nodes created by drag-and-drop operations, relatively to mouse cursor.

InplaceEditAcceptOnEnter

Gets or sets a value indicating whether pressing the ENTER key should exit inplace-edit mode and accept changes made to text.

InplaceEditCancelOnEsc

Gets or sets a value indicating whether pressing the ESC key should exit inplace-edit mode and reject changes made to text.

LicenseKey

Gets or sets the license key of the control.

MiddleButtonActions

Gets or sets a combination of flags that specify what actions can be performed via the middle mouse button.

ModificationStart

Gets or sets how users can start modifying diagram items.

ModifierKeyActions

Gets an object, which allows changing the function of keyboard modifier keys such as Ctrl and Alt.

RightButtonActions

Gets or sets a combination of flags that specify what actions can be performed via the right mouse button.

ScrollX

Gets or sets the diagram's horizontal scroll position.

ScrollY

Gets or sets the diagram's vertical scroll position.

ScrollZoneSize

Gets or sets the size of the auto scroll zone near the edges of the control.

VersionInfo

Gets version information.

VerticalDropAlignment

Gets or sets the vertical placement of nodes created by drag-and-drop operations, relatively to mouse cursor.

Viewport

Returns the visible area of the diagram.

ZoomFactor

Gets or sets the zoom factor.

 Public Methods

  Name Description

BeginEdit

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

BringIntoView

Overloaded.  

CancelDrag

Cancels the current drag operation.

CopyToClipboard

Copies the current selection of items to the clipboard.

CutToClipboard

Cuts the currently selected items to the clipboard.

DiagramToView

Overloaded.  

Dispose

Implements IDisposable.

EndEdit

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

OnResize

For internal use.

OnScrollX

For internal use.

OnScrollY

For internal use.

PasteFromClipboard

Pastes diagram items from the clipboard.

ScrollTo

Overloaded.  

SetClientRect

For internal use.

SetZoomFactor

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

ShowMenu

Overloaded.  

ViewToDiagram

Overloaded.  

ZoomToFit

Zooms the view to fit diagram contents inside component's client area.

ZoomToRect

Overloaded.  

 Protected Methods

  Name Description

BuildRenderTree

 

OnAfterRenderAsync

ComponentBase.OnAfterRenderAsync override.

OnDiagramChanged

Raises the DiagramChanged event.

OnEnterInplaceEditMode

Raises the EnterInplaceEditMode event.

OnLeaveInplaceEditMode

Raises the LeaveInplaceEditMode event.

 Public Events

  Name Description

DiagramChanged

Occurs when the Diagram property changes.

EnterInplaceEditMode

Raised when entering inplace-edit mode.

LeaveInplaceEditMode

Raised when leaving inplace-edit mode.

 See Also