The Diagram class represents a flow diagram.
The following tables list the members exposed by the Diagram type.
Name | Description | |
---|---|---|
Initializes a new instance of the Diagram class. |
Name | Description | |
---|---|---|
A list of DiagramItem objects. |
||
A list of DiagramLink objects. |
||
A list of DiagramNode objects. |
||
Indicates whether to stop default touch behavior of browsers in order to allow interactive drawing and modification of diagram items. |
Name | Description | |
---|---|---|
Registers a single event listener on the Diagram. |
||
Adds an item to the Diagram. |
||
Returns a point of the alignment grid nearest to the one passed as an argument. |
||
Arranges the diagram with the given layout. |
||
Arranges the diagram using the given layout, and animates items moving to their new positions. |
||
Rearranges link labels whose AutoArrange property is enabled. |
||
Overloaded. |
||
Stops recording undo/redo commands into a CompositeCommand and discards the records created so far. |
||
Removes all items from the diagram. |
||
Stops recording undo/redo commands into a CompositeCommand and saves the composite in the history queue. |
||
Copies the current selection of items to the clipboard. |
||
Creates and initializes a new Diagram from the specified element. This method is static and can be called without creating an instance of the class. |
||
Cuts the currently selected items to the clipboard. |
||
Overrides Component.Dispose |
||
Exits the in-place editing mode and either accepts or rejects the changes made to the item's text. |
||
Executes the specified command on this diagram. |
||
Returns the specified Diagram object. This member is static and can be invoked without creating an instance of the class. |
||
Deserializes the diagram from a JSON string. |
||
Loads diagram contents from specified XML Document. |
||
Gets the active diagram element. |
||
Gets the size of adjustment handles that appear around selected items. |
||
Gets a value indicating whether the diagram items should be aligned to a grid. |
||
Gets a value indicating whether in-place editing of the text of objects is enabled. |
||
Gets a value indicating whether multiple selected nodes can be resized simultaneously. |
||
Gets a value indicating whether users are allowed to draw reflexive links. |
||
Gets a value indicating whether users are allowed to draw links that are not connected to any node. |
||
Gets a value indicating whether auto-arranged link labels should avoid containers. |
||
Gets a value indicating whether auto-arranged link labels should avoid link segments. |
||
Gets the maximum distance between first and last points of a FreeFormNode for which the node's outline is closed automatically. |
||
Gets a value indicating whether the document area should be resized automatically so it fits the diagram contents. |
||
Gets a value indicating whether auto scrolling of the document area is enabled. |
||
Gets the amount by which to auto-scroll the view when the mouse leaves the view boundaries while drawing. |
||
Gets the object used for painting the diagram background. |
||
Gets a value indicating how the background image is positioned. |
||
Gets the Base64-encoded data of the background image. |
||
Gets the URL of the image displayed as background of this diagram. |
||
Gets a value indicating how the control responds to user actions. |
||
Returns the smallest rectangle that bounds all diagram items. |
||
Gets the radius length of decorations displayed at link intersection points. |
||
Gets the type of a MindFusion.Diagramming.DiagramLink derived class whose instance should be created when a user starts drawing. |
||
Gets the type of a MindFusion.Diagramming.DiagramNode derived class whose instance should be created when a user starts drawing. |
||
Gets a value that specifies what action should be performed when the user hits the Del key. |
||
Gets a value indicating whether the diagram has changed since loading it. |
||
Gets the default value for the Dynamic property of new links. |
||
Checks if mouse events are enabled. |
||
Gets a value indicating the link direction in which tree branches are expanded. |
||
Gets a Factory instance that lets you add programmatically new items to the diagram. |
||
Gets the font for text written on diagram items. |
||
Gets the radius around dragged free-form adjustment handle in which other points of FreeFormNode are modified too. |
||
Gets an array of Shape objects used to replace FreeFormNode instances with ShapeNode ones when Behavior is set to LinkFreeShapes or DrawFreeShapes. |
||
Gets the color of the grid points. |
||
Gets the horizontal offset of the first point of the alignment grid. |
||
Gets the vertical offset of the first point of the alignment grid. |
||
Gets the size of shapes used to represent grid points. |
||
Gets the horizontal distance between adjacent grid points. |
||
Gets the vertical distance between adjacent grid points. |
||
Gets the visual style of the alignment grid. |
||
Finds and returns the topmost DiagramItem found at the specified location. |
||
Returns the array of all items in this diagram. |
||
Finds and returns an array of the diagram items found at the specified location. |
||
Gets the lane grid. |
||
Gets a combination of flags that specify what actions can be performed via the left mouse button. |
||
Finds and returns the topmost DiagramLink found at the specified location. |
||
Gets the shape displayed at the base of new links. |
||
Gets the default size of the base of new links. |
||
Gets the default fill of links. |
||
Gets a value indicating how to render the intersection points where two links cross each other. |
||
Gets the shape displayed as head of new links. |
||
Gets the default size of arrowheads. |
||
Gets a value specifying how far from a link a click is still considered a hit. |
||
Gets the default stroke of links. |
||
Gets the object used to find paths for auto-routed links when diagram nodes are added or their positions change. |
||
Returns the array of all links in this diagram. |
||
Finds and returns an array of the diagram DiagramLinks found at the specified location. |
||
Gets the default number of arrow segments. |
||
Gets the initial shape assigned to new links. |
||
Gets the default placement and orientation for links' text. |
||
Gets a value indicating whether the magnifier tool is currently enabled. |
||
Gets the zoom factor of the magnifier tool. |
||
Gets the color of the magnifier tool's frame. |
||
Gets the thickness of the magnifier frame. |
||
Gets the height of the magnifier tool. |
||
Gets the color of the magnifier tool's secondary frame. |
||
Gets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading. |
||
Gets a reference to the geometric shape definition of the magnifier tool. |
||
Gets the width of the magnifier tool. |
||
Gets a combination of flags that specify what actions can be performed via the middle mouse button. |
||
Gets how users can start modifying diagram items. |
||
Gets an object, which allows changing the function of keyboard modifier keys such as Ctrl and Alt. |
||
Returns the node nearest to the specified point. |
||
Finds and returns the topmost DiagramNode found at the specified location. |
||
Gets an array with all effects applied to the nodes of this diagram. |
||
Returns the array of all nodes in this diagram. |
||
Finds and returns an array of the DiagramNodes found at the specified location. |
||
Gets a value indicating whether newly created nodes can be expanded. |
||
Gets a combination of flags that specify what actions can be performed via the right mouse button. |
||
Gets a value indicating whether the joints between segments of Polyline and Cascading links should be rounded. |
||
Gets the radius of joint arcs of rounded links' segments. |
||
Gets a value indicating whether links should avoid nodes by going the shortest path from their origin to their destination without crossing any other nodes. |
||
Gets the minimal distance between nodes and auto-routed links. |
||
Gets the diagram's horizontal scroll position. |
||
Gets the diagram's vertical scroll position. |
||
Gets the size of the auto scroll zone near the edges of the control. |
||
Gets a Selection instance that represents the selection of items in this diagram. |
||
Gets the horizontal offset of objects' shadows. |
||
Gets the vertical offset of objects' shadows. |
||
Gets the style for rendering shadows. |
||
Gets the default fill of shape nodes. |
||
Gets the location of a shape library file containing custom shape definitions.It can be set to a full URL of the file, or a relative file path. |
||
Gets the default stroke of shape node-s. |
||
Gets a value indicating whether and when anchor point marks are displayed. |
||
Gets a value indicating whether adjustment handles are painted when they are disabled. |
||
Gets a value indicating whether the alignment grid is visible. |
||
Gets a value indicating whether the lane grid is visible. |
||
Gets the style associated with this diagram. |
||
Gets custom data associated with this diagram. |
||
Gets the theme associated with this diagram. |
||
Gets the delay before a tooltip is shown. |
||
Gets a value indicating whether saving action records for later undo is enabled. |
||
Returns the visible portion of the diagram area. |
||
Gets a value indicating whether virtual scroll mode is enabled. |
||
Overrides Component.Initialize |
||
Checks if the specified item can be modified interactively. |
||
Checks if the specified item is currently visible. |
||
Loads diagram contents from specified XML or JSON string. |
||
Loads the diagram from an XML file. |
||
Overloaded. |
||
Raises an event which notifies that a Diagram item has been clicked. |
||
Overloaded. |
||
Raises an event which notifies that a Diagram item has been deleted. |
||
Raises an event which notifies that a Diagram item has been deselected. |
||
Raises an event which notifies that a Diagram item has been double-clicked. |
||
Raises an event. |
||
Raises an event which notifies that a Diagram item has been modified. |
||
Raises an event which notifies that a Diagram item has been pasted from clipboard. |
||
Raises an event which notifies that a Diagram item has been selected. |
||
Starts recording mouse and keyboard events for subsequent replay. |
||
Executes again an action saved in the command history. |
||
Registers an onsubmit handler for the Diagram's parent html form to flush postback data. |
||
Registers a diagram item class for serialization support. |
||
Removes a single event listener attached to the Diagram. |
||
Removes the specified item from the Diagram. |
||
Replays a sequence of recorded mouse and keyboard events created by record and stopRecording methods. |
||
Resize the document extents so that the specified item is contained within. |
||
Resizes the document scrollable area so that it fits all diagram items. |
||
Routes all links in the diagram in such a way they do not cross nodes. |
||
Encodes the diagram contents into an XML or JSON string. |
||
Saves the diagram to an XML file. |
||
Scrolls the diagram to the specified point. |
||
Sets the size of adjustment handles that appear around selected items. |
||
Sets a value indicating whether the diagram items should be aligned to a grid. |
||
Sets a value indicating whether in-place editing of the text of objects is enabled. |
||
Sets a value indicating whether multiple selected nodes can be resized simultaneously. |
||
Sets a value indicating whether users are allowed to draw reflexive links. |
||
Sets a value indicating whether users are allowed to draw links that are not connected to any node. |
||
Sets a value indicating whether auto-arranged link labels should avoid containers. |
||
Sets a value indicating whether auto-arranged link labels should avoid link segments. |
||
Sets the maximum distance between first and last points of a FreeFormNode for which the node's outline is closed automatically. |
||
Sets a value indicating whether the document area should be resized automatically so it fits the diagram contents. |
||
Sets a value indicating whether auto scrolling of the document area is enabled. |
||
Sets the amount by which to auto-scroll the view when the mouse leaves the view boundaries while drawing. |
||
Sets an object used for painting the diagram background. |
||
Sets a value indicating how the background image is positioned. |
||
Sets the Base64-encoded data of the background image. |
||
Sets the URL of the image displayed as background of this diagram. |
||
Sets a value indicating how the control responds to user actions. |
||
Sets the radius length of decorations displayed at link intersection points. |
||
Sets the type of a MindFusion.Diagramming.DiagramLink derived class whose instance should be created when a user starts drawing. |
||
Sets the type of a MindFusion.Diagramming.DiagramNode derived class whose instance should be created when a user starts drawing. |
||
Sets the default shape of shape nodes. |
||
Sets a value that specifies what action should be performed when the user hits the Del key. |
||
Sets a value indicating whether the diagram has changed since loading it. |
||
Sets the default value for the Dynamic property of new links. |
||
Enables or disables handling of mouse events. |
||
Sets a value indicating the link direction in which tree branches are expanded. |
||
Sets the font for text written on DiagramItem-s. |
||
Sets the radius around dragged free-form adjustment handle in which other points of FreeFormNode are modified too. |
||
Sets an array of Shape objects used to replace FreeFormNode instances with ShapeNode ones when Behavior is set to LinkFreeShapes or DrawFreeShapes. |
||
Sets the color of the grid points. |
||
Sets the horizontal offset of the first point of the alignment grid. |
||
Sets the vertical offset of the first point of the alignment grid. |
||
Sets the size of shapes used to represent grid points. |
||
Sets the horizontal distance between adjacent grid points. |
||
Sets the vertical distance between adjacent grid points. |
||
Sets the visual style of the alignment grid. |
||
Sets the Shape displayed at the base of new links. |
||
Sets the default size of the base shape of new links. |
||
Sets the default fill of links. |
||
Sets a value indicating how to render the intersection points where two links cross each other. |
||
Sets the Shape displayed as head of new links. |
||
Sets the default size of arrowheads. |
||
Sets a value specifying how far from a link a click is still considered a hit. |
||
Sets the default stroke of links. |
||
Sets the object used to find paths for auto-routed links when diagram nodes are added or their positions change. |
||
Sets the default number of arrow segments. |
||
Sets the initial shape assigned to new links. |
||
Sets the default placement and orientation for links' text. |
||
Sets a value indicating whether the magnifier tool is currently enabled. |
||
Sets the zoom factor of the magnifier tool. |
||
Sets the color of the magnifier tool's frame. |
||
Sets the thickness of the magnifier frame. |
||
Sets the height of the magnifier tool. |
||
Sets the color of the magnifier tool's secondary frame. |
||
Sets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading. |
||
Sets a reference to the geometric shape definition of the magnifier tool. |
||
Sets the width of the magnifier tool. |
||
Sets a combination of flags that specify what actions can be performed via the middle mouse button. |
||
Sets how users can start modifying diagram items. |
||
Sets a value indicating whether newly created nodes can be collapsed and expanded by users. |
||
Sets a combination of flags that specify what actions can be performed via the right mouse button. |
||
Sets a value indicating whether the joints between segments of Polyline and Cascading links should be rounded. |
||
Sets the radius of joint arcs of rounded links' segments. |
||
Sets a value indicating whether links should avoid nodes by going the shortest path from their origin to their destination without crossing any other nodes. |
||
Sets the minimal distance between nodes and auto-routed links. |
||
IZoomTarget implementation |
||
Sets the diagram's horizontal scroll position. |
||
Sets the diagram's vertical scroll position. |
||
Sets the size of the auto scroll zone near the edges of the control. |
||
Sets the horizontal offset of objects' shadows. |
||
Sets the vertical offset of objects' shadows. |
||
Sets the style for rendering shadows. |
||
Sets the default fill of shape nodes. |
||
Sets the location of a shape library file containing custom shape definitions.It can be set to a full URL of the file, or a relative file path. |
||
Sets the default stroke of shape nodes. |
||
Sets a value indicating whether and when anchor point marks are displayed. |
||
Sets a value indicating whether adjustment handles are painted when they are disabled. |
||
Sets a value indicating whether the alignment grid is visible. |
||
Sets a value indicating whether the lane grid is visible. |
||
Sets the style associated with this diagram. |
||
Sets custom data associated with this diagram. |
||
Sets the theme associated with this diagram. |
||
Sets the delay before a tooltip is shown. |
||
Sets a value indicating whether saving action records for later undo is enabled. |
||
Enables or disables virtual scroll mode. |
||
Sets the zoom factor, preserving the on-screen position of the specified diagram point. |
||
IZoomTarget implementation. |
||
Starts recording undo/redo commands into a CompositeCommand. |
||
Stops recording mouse and keyboard events. |
||
Serializes the diagram into a JSON string. |
||
Saves the diagram into an XML Document. |
||
Undoes an action saved in the command history. |
||
Zooms the view to fit the document contents in the Diagram client area. |
||
Zooms and scrolls the view to fit the specified document rectangle in the Diagram's visible area. |