Xamarin Pack Programmer's Guide
Diagram Methods
 


 Public Methods

  Name Description

AlignPointToGrid

Returns a point of the alignment grid nearest to the specified point.

ArrangeLinkLabels

Rearranges link labels whose AutoArrange property is enabled.

BeginEdit

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

CancelDrag

 

ChangeUnit

Sets new MeasureUnit value and scales the coordinates of diagram items so that their absolute size remains unchanged.

ClearAll

Removes all items and groups from the diagram.

CreateMeasureGraphics

Creates an IGraphics object that can be used to obtain various string size measurements.

CreateThemeFromDefaults

Creates a Theme object representing the default properties of the diagram.

Draw

Overloaded.  

DrawAlignmentGuides

Draws the current alignment guides.

DrawLayer

Renders all diagram items to the specified graphics.

EndEdit

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

FindLink

Finds the link that has the specified tag value.

FindLinkById

Finds the link that has the specified id value.

FindNode

Finds the node that has the specified tag value.

FindNodeById

Finds the node that has the specified id value.

GetContentBounds

Returns the smallest rectangle that bounds all diagram objects.

GetGraphics

For internal use.

GetItemAt

Returns the top-most diagram item lying at the specified location.

GetLinkAt

Overloaded. Returns the top-most link that lies at a specified position.

GetLinksAt

Returns the links that contain the specified point.

GetMeasureGraphics

For internal use.

GetNearestNode

Returns the nearest node whose bounding rectangle is intersected by the circle, defined by origin point and radius.

GetNodeAt

Overloaded. Returns the topmost node that lies at a specified position.

GetNodesAt

Returns the nodes that contain the specified point.

HandleLongPress

For internal use.

HandleTouchDown

For internal use.

HandleTouchMove

For internal use.

HandleTouchUp

For internal use.

HitTestManipulators

Tests whether the specified point is within the manipulator of a diagram object and triggers the manipulator.

Invalidate

Overloaded. Invalidates the diagram.

InvalidateZOrder

Forces a new sort of the Z order list before next redraw.

IsClassRegistered

Checks if a class is registered for serialization support.

IsClientClassRegistered

Checks if a class is registered for JSON serialization support.

IsItemInteractive

Checks if the specified item can be modified interactively.

IsItemLocked

Checks if the specified item is locked.

IsItemVisible

Checks if the specified item is currently visible.

LoadFromJson

Loads the diagram from a JSON-formatted string.

LoadFromJsonFile

Loads the diagram from a JSON file.

LoadFromJsonObject

Loads the diagram from a JSON object.

LoadFromString

Loads a diagram from the specified string.

LoadFromXml

Overloaded. Loads the diagram.

Navigate

Selects the nearest item in the specified direction.

RaiseCellTextEdited

Raises the CellTextEdited event.

RaiseCellTextEditing

Raises the CellTextEditing event to validate entering inplace edit mode.

RaiseClicked

Raises the Clicked event.

RaiseCreated

Raises the appropriate *Created event according to the type of the specified item.

RaiseDeleting

Raises the appropriate *Deleting event according to the type of the specified item.

RaiseLinkTextEdited

Raises the LinkTextEdited event.

RaiseLinkTextEditing

Raises the LinkTextEditing event to validate entering inplace edit mode.

RaiseNodeTextEdited

Raises the NodeTextEdited event.

RaiseNodeTextEditing

Raises the NodeTextEditing event to validate entering inplace edit mode.

RaisePasted

Raises the appropriate Pasted event.

RaiseSelecting

Raises the appropriate Selecting event.

RaiseTreeItemTextEditing

Raises the TreeItemTextEditing event to validate entering inplace edit mode.

RaiseViewRemoved

Raises the ViewRemoved event.

RegisterClass

Overloaded.  

RegisterDefaultStyle

Registers a default style for the objects of the specified type.

RegisterItemClass

Overloaded.  

ResetAlignmentGuides

For internal use.

ResizeToFitItem

Resize the document extents so that the specified item is contained within.

ResizeToFitItems

Overloaded. Resizes the document scrollable area so it fits all diagram items.

RouteAllLinks

Performs routing on all links ignoring their AutoRoute flag.

SaveToJson

 

SaveToJsonFile

Saves the diagram into a JSON file.

SaveToJsonObject

Saves the diagram to a JSON object.

SaveToString

Overloaded. Encodes the diagram contents into an ASCII string.

SaveToXml

Overloaded. Saves the diagram to an XML document.

SetShadowOffset

Sets the default offset at which objects' shadows are drawn.

SetTransform

Overloaded. Sets the transformation of the specified graphics to correspond to the diagram's current unit, zoom and scroll.

UpdateRuntimeIndices

For internal use.

 Protected Methods

  Name Description

AddItem

Invoked by the AddItemCmd and RemoveItemCmd classes to effectively add the specified item to the diagram.

CreateItem

Creates an instance of the specified class.

GetValue

Gets the effective value of the style property with the specified name.

OnBeginLoad

Raises the BeginLoad event. (Inherited from DiagramBase.)

OnBoundsChanged

Raises the BoundsChanged event. (Inherited from DiagramBase.)

OnCellClicked

Raises the CellClicked event. (Inherited from DiagramBase.)

OnCellTextEdited

Raises the CellTextEdited event. (Inherited from DiagramBase.)

OnCellTextEditing

Raises the CellTextEditing event to validate entering inplace edit mode. (Inherited from DiagramBase.)

OnClicked

Raises the Clicked event. (Inherited from DiagramBase.)

OnContainerChildAdded

Raises the ContainerChildAdded event. (Inherited from DiagramBase.)

OnContainerChildRemoved

Raises the ContainerChildRemoved event. (Inherited from DiagramBase.)

OnContainerFolded

Raises the ContainerFolded event. (Inherited from DiagramBase.)

OnContainerUnfolded

Raises the ContainerUnfolded event. (Inherited from DiagramBase.)

OnDefaultShapeChanged

Raises the DefaultShapeChanged event. (Inherited from DiagramBase.)

OnDeserializeTag

Raises the DeserializeTag event. (Inherited from DiagramBase.)

OnDestinationAnchorChanged

Raises the DestinationAnchorChanged event. (Inherited from DiagramBase.)

OnDirtyChanged

Raises the DirtyChanged event. (Inherited from DiagramBase.)

OnDrawAdjustmentHandles

Raises the DrawAdjustmentHandles event. (Inherited from DiagramBase.)

OnDrawAnchorPoint

Raises the DrawAnchorPoint event. (Inherited from DiagramBase.)

OnDrawBackground

Raises the DrawBackground event. (Inherited from DiagramBase.)

OnDrawCell

Raises the DrawCell event. (Inherited from DiagramBase.)

OnDrawForeground

Raises the DrawForeground event. (Inherited from DiagramBase.)

OnDrawLink

Raises the DrawLink event. (Inherited from DiagramBase.)

OnDrawNode

Raises the DrawNode event. (Inherited from DiagramBase.)

OnEndLoad

Raises the EndLoad event. (Inherited from DiagramBase.)

OnExpandButtonClicked

Raises the ExpandButtonClicked event. (Inherited from DiagramBase.)

OnHitTestAdjustmentHandles

Raises the HitTestAdjustmentHandles event. (Inherited from DiagramBase.)

OnInitializeLink

Raises the InitializeLink event. (Inherited from DiagramBase.)

OnInitializeNode

Raises the InitializeNode event. (Inherited from DiagramBase.)

OnItemAdded

Raises the ItemAdded event. (Inherited from DiagramBase.)

OnItemRemoved

Raises the ItemRemoved event. (Inherited from DiagramBase.)

OnJsonDeserializeTag

Raises the JsonDeserializeTag event. (Inherited from DiagramBase.)

OnJsonSerializeTag

Raises the JsonSerializeTag event. (Inherited from DiagramBase.)

OnLabelClicked

Raises the LabelClicked event. (Inherited from DiagramBase.)

OnLayerVisibilityChanged

Raises the LayerVisibilityChanged event. (Inherited from DiagramBase.)

OnLinkActivated

Raises the LinkActivated event. (Inherited from DiagramBase.)

OnLinkClicked

Raises the LinkClicked event. (Inherited from DiagramBase.)

OnLinkCreateCancelled

Raises the LinkCreateCancelled event. (Inherited from DiagramBase.)

OnLinkCreated

Raises the LinkCreated event. (Inherited from DiagramBase.)

OnLinkCreating

Raises the LinkCreating event. (Inherited from DiagramBase.)

OnLinkDeactivated

Raises the LinkDeactivated event. (Inherited from DiagramBase.)

OnLinkDeleted

Raises the LinkDeleted event. (Inherited from DiagramBase.)

OnLinkDeleting

Raises the LinkDeleting event. (Inherited from DiagramBase.)

OnLinkDeselected

Raises the LinkDeselected event. (Inherited from DiagramBase.)

OnLinkModified

Raises the LinkModified event. (Inherited from DiagramBase.)

OnLinkModifyCancelled

Raises the LinkModifyCancelled event. (Inherited from DiagramBase.)

OnLinkModifying

Raises the LinkModifying event. (Inherited from DiagramBase.)

OnLinkPasted

Raises the LinkPasted event. (Inherited from DiagramBase.)

OnLinkRouted

Raises the LinkRouted event. (Inherited from DiagramBase.)

OnLinkSelected

Raises the LinkSelected event. (Inherited from DiagramBase.)

OnLinkSelecting

Raises the LinkSelecting event. (Inherited from DiagramBase.)

OnLinkSplit

Raises the LinkSplit event. (Inherited from DiagramBase.)

OnLinkStartModifying

Raises the LinkStartModifying event. (Inherited from DiagramBase.)

OnLinkTextEdited

Raises the LinkTextEdited event. (Inherited from DiagramBase.)

OnLinkTextEditing

Raises the LinkTextEditing event to validate entering inplace edit mode. (Inherited from DiagramBase.)

OnLongPressed

Raises the LongPressed event. (Inherited from DiagramBase.)

OnMeasureUnitChanged

Raises the MeasureUnitChanged event. (Inherited from DiagramBase.)

OnNodeActivated

Raises the NodeActivated event. (Inherited from DiagramBase.)

OnNodeClicked

Raises the NodeClicked event. (Inherited from DiagramBase.)

OnNodeCreateCancelled

Raises the NodeCreateCancelled event. (Inherited from DiagramBase.)

OnNodeCreated

Raises the NodeCreated event. (Inherited from DiagramBase.)

OnNodeCreating

Raises the NodeCreating event. (Inherited from DiagramBase.)

OnNodeDeactivated

Raises the NodeDeactivated event. (Inherited from DiagramBase.)

OnNodeDeleted

Raises the NodeDeleted event. (Inherited from DiagramBase.)

OnNodeDeleting

Raises the NodeDeleting event. (Inherited from DiagramBase.)

OnNodeDeselected

Raises the NodeDeselected event. (Inherited from DiagramBase.)

OnNodeModified

Raises the NodeModified event. (Inherited from DiagramBase.)

OnNodeModifyCancelled

Raises the NodeModifyCancelled event. (Inherited from DiagramBase.)

OnNodeModifying

Raises the NodeModifying event. (Inherited from DiagramBase.)

OnNodePasted

Raises the NodePasted event. (Inherited from DiagramBase.)

OnNodeSelected

Raises the NodeSelected event. (Inherited from DiagramBase.)

OnNodeSelecting

Raises the NodeSelecting event. (Inherited from DiagramBase.)

OnNodeStartModifying

Raises the NodeStartModifying event. (Inherited from DiagramBase.)

OnNodeTextEdited

Raises the NodeTextEdited event. (Inherited from DiagramBase.)

OnNodeTextEditing

Raises the NodeTextEditing event to validate entering inplace edit mode. (Inherited from DiagramBase.)

OnOriginAnchorChanged

Raises the OriginAnchorChanged event. (Inherited from DiagramBase.)

OnQueryAlignTarget

Raises the QueryAlignTarget event. (Inherited from DiagramBase.)

OnRadialMenuCreated

Raises the RadialMenuCreated event. (Inherited from DiagramBase.)

OnRepaint

Raises the Repaint event. (Inherited from DiagramBase.)

OnRequestClipboard

Raises the RequestClipboard event. (Inherited from DiagramBase.)

OnRequestTimer

Raises the RequestTimer event. (Inherited from DiagramBase.)

OnSelectionChanged

Raises the SelectionChanged event. (Inherited from DiagramBase.)

OnSelectionModified

Raises the SelectionModified event. (Inherited from DiagramBase.)

OnSelectionModifying

Raises the SelectionModifying event. (Inherited from DiagramBase.)

OnSerializeTag

Raises the SerializeTag event. (Inherited from DiagramBase.)

OnSetSelfLoopShape

Raises the SetSelfLoopShape event. (Inherited from DiagramBase.)

OnSizeAllocated

Layout.OnSizeAllocated override.

OnTableSectionCollapsed

Raises the TableSectionCollapsed event. (Inherited from DiagramBase.)

OnTableSectionExpanded

Raises the TableSectionExpanded event. (Inherited from DiagramBase.)

OnTouchDown

Raises the TouchDown event. (Inherited from DiagramBase.)

OnTouchMove

Raises the TouchMove event. (Inherited from DiagramBase.)

OnTouchUp

Raises the TouchUp event. (Inherited from DiagramBase.)

OnTreeCollapsed

Raises the TreeCollapsed event. (Inherited from DiagramBase.)

OnTreeExpanded

Raises the TreeExpanded event. (Inherited from DiagramBase.)

OnTreeItemTextEditing

Raises the TreeItemTextEditing event. (Inherited from DiagramBase.)

OnValidateAnchorPoint

Raises the ValidateAnchorPoint event. (Inherited from DiagramBase.)

OnViewRemoved

Raises the ViewRemoved event. (Inherited from DiagramBase.)

 See Also

Diagram Class
MindFusion.Diagramming Namespace