Search
DiagramView Members
Constructors Properties Methods Events
 


A .NET Windows Forms control that displays the content of a Diagram object.

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

 Public Constructors

  Name Description

DiagramView

Overloaded.  

 Public Properties

  Name Description

AllowInplaceEdit

Gets or sets a value indicating whether in-place editing of the text of objects is enabled.

AllowLinkCursor

Gets or sets the mouse cursor shown to the user when a link can be created.

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.

BorderColor

Gets or sets the color of view's borders.

BorderWidth

Gets or sets the thickness of view's borders.

CatchGdiPlusExceptions

Catches GDI+ exceptions thrown while drawing dashed lines with anti-aliasing.

ControlHandlesStyle

Gets or sets the default value for the HandlesStyle property of new ControlNode nodes.

ControlMouseAction

Gets or sets a value indicating how to handle mouse messages sent to controls hosted in ControlNode objects.

CounterDiagonalResizeCursor

Gets or sets the mouse cursor shown to the user if dragging would resize an object both vertically and horizontally.

CurrentCursor

Gets or sets the currently displayed mouse cursor.

Cursor

Control.Cursor override.

CustomBehavior

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

CustomLinkType

Gets or sets a custom type of DiagramLink-derived objects that will be created when the users starts drawing with the mouse.

CustomNodeType

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

DefaultControlType

Gets or sets the type of .NET controls to create in ControlNode objects.

DelKeyAction

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

DiagonalResizeCursor

Gets or sets the mouse cursor shown to the user if dragging would resize an object both vertically and horizontally.

Diagram

Gets or sets the diagram displayed by this view.

DisallowCursor

Gets or sets the mouse cursor shown to the user when an object cannot be created at a particular location.

DisallowLinkCursor

Gets or sets the mouse cursor shown to the user, when a link is being created but cannot be ended at the current location.

DpiX

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

DpiY

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

DragIndicator

Specifies what kind of feedback to display during drag-and-drop from NodeListView.

DragIndicatorOpacity

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

DrawLinkCursor

Gets or sets the mouse cursor shown to the user when a link can be started at the current position.

DropAlignment

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

DropTarget

Gets a DiagramView instance currently targeted by drag-and-drop operation.

EditTextCursor

Gets or sets the mouse cursor shown to the user when the mouse is positioned over an edit component.

EnableMultiTouch

Gets or sets whether the control handles touch events to implement multi-touch interactions. (Inherited from TouchControl.)

EnableTabletMode

Gets or sets a value indicating whether default Windows touch gestures are blocked.

HorizontalResizeCursor

Gets or sets the mouse cursor shown to the user if dragging would resize an object horizontally.

HScrollBar

Gets the horizontal scrollbar of the view.

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.

InplaceEditFont

Gets or sets the font of the inplace-edit text box.

IsDefaultDiagram

Gets a value indicating whether the view hosts the default diagram.

LaneColumnResizeCursor

Gets or sets the mouse cursor shown to the user when dragging would resize a lane column header.

LaneRowResizeCursor

Gets or sets the mouse cursor shown to the user when dragging would resize a lane row header.

LicenseKey

Gets or sets the license key of the control.

MagnifierEnabled

Gets or sets a value indicating whether the magnifier tool is currently enabled.

MagnifierFactor

Gets or sets the zoom factor of the magnifier tool.

MagnifierFrameColor

Gets or sets the color of the magnifier frame.

MagnifierFrameThickness

Gets or sets the thickness of the magnifier frame, expressed in pixels.

MagnifierHeight

Gets or sets the height of the magnifier tool, expressed in pixels.

MagnifierSecondaryFrameColor

Gets or sets the secondary color of the magnifier frame.

MagnifierShading

Gets or sets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading.

MagnifierShape

Gets or sets the shape of the magnifier tool.

MagnifierWidth

Gets or sets the width of the magnifier tool, expressed in pixels.

MiddleButtonActions

Gets or sets what actions are 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.

MouseWheelAction

Gets or sets what action to perform when users rotate the mouse wheel.

MoveCursor

Gets or sets the mouse cursor shown to the user if the pointed object can be modified.

MultiTouchDraw

Gets or sets a value indicating whether multi-touch drawing is enabled.

MultiTouchModify

Gets or sets a value indicating whether multi-touch modifications are enabled.

MultiTouchZoom

Gets or sets a value indicating whether multi-touch zoom is enabled.

OverrideCursor

Sets the cursor and stops changing it depending on the context.

PanCursor

Gets or sets the mouse cursor displayed while panning the diagram view.

PointerCursor

Gets or sets the mouse cursor shown to the user when no modification is performed.

PreviewOptions

Gets an object which provides customization properties for the extended print-preview window.

PrintOptions

Gets an object which provides customization properties for printing and print-preview.

RightButtonActions

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

RotateCursor

Gets or sets the cursor shown when the mouse is over a node rotation handle.

ScrollBarProvider

Gets or sets an object implementing the IScrollBarProvider interface, used for binding scrollbar controls to this DiagramView.

ScrollX

Gets or sets the horizontal scroll position of the document.

ScrollY

Gets or sets the vertical scroll position of the document.

ScrollZoneSize

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

ShowScrollbars

Gets or sets a value indicating whether scrollbars are present in the document's area.

ShowToolTips

Gets or sets a value indicating whether tooltips are enabled.

SmoothingMode

Gets or sets the current anti-alias mode.

TextRenderingHint

Gets or sets the rendering mode for text displayed in this diagram.

ToolTipControl

Gets the ToolTip control used to display tool tips for the diagram items.

ToolTipDelay

Gets or sets the time that passes before a tool-tip appears when the mouse hovers over an item.

TouchGestureDistance

Gets or sets max distance (pixels) at which touch-down events are considered part of same gesture.

TouchGestureInterval

Gets or sets max time interval (milliseconds) in which touch-down events are considered part of same gesture.

UpdateTextOnZoom

Gets or sets a value indicating whether to force text layout updates when the zoom factor of the view changes.

VersionInfo

Gets version information.

VerticalResizeCursor

Gets or sets the mouse cursor shown to the user if dragging would resize an object vertically.

Viewport

Returns the visible portion of the diagram area.

VScrollBar

Gets the vertical scrollbar of the control.

ZoomFactor

Gets or sets the zoom factor used to scale up or down the diagram.

 Protected Properties

  Name Description

DefaultSize

Gets or sets the initial size of the control when it is dropped into a form.

 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.

 Public Events

  Name Description

CopyHostedControl

Raised when a ControlNode's hosted control is copied to or from the clipboard.

CreateEditControl

Raised to let you create a custom in-place editor control.

DeserializeControl

Lets you load custom data associated with a hosted control when deserializing a diagram from a stream.

DestroyEditControl

Raised to let you destroy a custom inplace editor control.

DiagramChanged

Occurs when the Diagram property value has changed.

DrawMagnifier

Raised after the magnifier tool is rendered to allow appearance customization.

EnterInplaceEditMode

Raised when entering inplace-edit mode.

LeaveInplaceEditMode

Raised when leaving inplace-edit mode.

PaintControl

Raised when a hosted control must be printed, drawn in a print-preview or Overview window, or drawn in an exported bitmap.

ScrollChanged

Occurs when the scroll position has changed.

SerializeControl

Lets you save additional data for hosted controls when serializing the diagram into a file.

TouchDown

Raised when a new touch is added to the touch screen. (Inherited from TouchControl.)

TouchMove

Raised when a touch moves. (Inherited from TouchControl.)

TouchUp

Raised when a touch is removed from the touch screen. (Inherited from TouchControl.)

ZoomFactorChanged

Occurs when the ZoomFactor property value has changed.

 See Also