Interface IGraphInfo
Represents to gets more / additional information about the diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public interface IGraphInfo
Properties
Commands
Gets the diagramming commands.
Declaration
IDiagramCommands Commands { get; }
Property Value
Viewport
Gets the bounds of the viewport.
Declaration
Property Value
Methods
add_AnnotationChanged(AnnotationChangedEventHandler)
Declaration
void add_AnnotationChanged(AnnotationChangedEventHandler value)
Parameters
Declaration
void add_AutoScrolled(AutoScrolledHandler value)
Parameters
add_ConnectorEditing(ConnectorEditingEventHandler)
Declaration
void add_ConnectorEditing(ConnectorEditingEventHandler value)
Parameters
add_ConnectorSourceChangedEvent(ConnectorSourceChangedEventHandler)
Declaration
void add_ConnectorSourceChangedEvent(ConnectorSourceChangedEventHandler value)
Parameters
add_ConnectorTargetChangedEvent(ConnectorTargetChangedEventHandler)
Declaration
void add_ConnectorTargetChangedEvent(ConnectorTargetChangedEventHandler value)
Parameters
add_DragEnter(DragEnterEventHandler)
Declaration
void add_DragEnter(DragEnterEventHandler value)
Parameters
add_DragLeave(DragLeaveEventHandler)
Declaration
void add_DragLeave(DragLeaveEventHandler value)
Parameters
add_DragOver(DragOverEventHandler)
Declaration
void add_DragOver(DragOverEventHandler value)
Parameters
Declaration
void add_FreeFormDrawingEvent(FreeFormDrawingEventHandler value)
Parameters
add_GetDrawType(DrawTypeEventHandler)
Declaration
void add_GetDrawType(DrawTypeEventHandler value)
Parameters
add_GetLayoutInfo(LayoutInfoHandler)
Declaration
void add_GetLayoutInfo(LayoutInfoHandler value)
Parameters
add_HistoryChangedEvent(HistoryChangedEventHandler)
Declaration
void add_HistoryChangedEvent(HistoryChangedEventHandler value)
Parameters
add_ItemAdded(ItemAddedEventHandler)
Declaration
void add_ItemAdded(ItemAddedEventHandler value)
Parameters
add_ItemAdding(ItemAddingEventHandler)
Declaration
void add_ItemAdding(ItemAddingEventHandler value)
Parameters
add_ItemDeleted(ItemDeletedEventHandler)
Declaration
void add_ItemDeleted(ItemDeletedEventHandler value)
Parameters
add_ItemDeletingEvent(ItemDeletingEventHandler)
Declaration
void add_ItemDeletingEvent(ItemDeletingEventHandler value)
Parameters
add_ItemDoubleTappedEvent(ItemDoubleTappedEventHandler)
Declaration
void add_ItemDoubleTappedEvent(ItemDoubleTappedEventHandler value)
Parameters
add_ItemDropEvent(ItemDropEventHandler)
Declaration
void add_ItemDropEvent(ItemDropEventHandler value)
Parameters
add_ItemSelectedEvent(SelectedEventHandler)
Declaration
void add_ItemSelectedEvent(SelectedEventHandler value)
Parameters
add_ItemSelectingEvent(SelectingEventHandler)
Declaration
void add_ItemSelectingEvent(SelectingEventHandler value)
Parameters
add_ItemTappedEvent(ItemTappedEventHandler)
Declaration
void add_ItemTappedEvent(ItemTappedEventHandler value)
Parameters
add_ItemUnSelectedEvent(UnSelectedEventHandler)
Declaration
void add_ItemUnSelectedEvent(UnSelectedEventHandler value)
Parameters
add_ItemUnSelectingEvent(UnSelectingEventHandler)
Declaration
void add_ItemUnSelectingEvent(UnSelectingEventHandler value)
Parameters
add_LayoutUpdated(LayoutUpdatedEventHandler)
Declaration
void add_LayoutUpdated(LayoutUpdatedEventHandler value)
Parameters
add_MenuItemClickedEvent(MenuItemClickedEventHander)
Declaration
void add_MenuItemClickedEvent(MenuItemClickedEventHander value)
Parameters
add_MenuOpening(MenuOpeningEventHandler)
Declaration
void add_MenuOpening(MenuOpeningEventHandler value)
Parameters
add_MouseDown(MouseDownEventHandler)
Declaration
void add_MouseDown(MouseDownEventHandler value)
Parameters
add_MouseUp(MouseUpEventHandler)
Declaration
void add_MouseUp(MouseUpEventHandler value)
Parameters
add_NodeChangedEvent(NodeChangedEventHandler)
Declaration
void add_NodeChangedEvent(NodeChangedEventHandler value)
Parameters
add_ObjectDrawn(ObjectDrawnEventHander)
Declaration
void add_ObjectDrawn(ObjectDrawnEventHander value)
Parameters
add_PortChanged(PortChangedEventHandler)
Declaration
void add_PortChanged(PortChangedEventHandler value)
Parameters
add_Printing(PrintingEventHandler)
Declaration
void add_Printing(PrintingEventHandler value)
Parameters
add_SelectorChangedEvent(SelectorChangedEventHandler)
Declaration
void add_SelectorChangedEvent(SelectorChangedEventHandler value)
Parameters
add_SwimlaneChildChangedEvent(SwimlaneChildChangedEventHandler)
Declaration
void add_SwimlaneChildChangedEvent(SwimlaneChildChangedEventHandler value)
Parameters
add_SymbolDroppingEvent(SymbolDroppingEventHandler)
Declaration
void add_SymbolDroppingEvent(SymbolDroppingEventHandler value)
Parameters
add_ViewPortChangedEvent(ViewPortChangedEventHandler)
Declaration
void add_ViewPortChangedEvent(ViewPortChangedEventHandler value)
Parameters
BringIntoCenter(Rect)
To bring the specified bounds of diagram control into center of the view.
Declaration
void BringIntoCenter(Rect bounds)
Parameters
Type |
Name |
Description |
System.Windows.Rect |
bounds |
The bounds value which should be shown at center of the view.
|
BringIntoViewport(Rect)
To bring the specified bounds of diagram control into view.
Declaration
void BringIntoViewport(Rect bounds)
Parameters
Type |
Name |
Description |
System.Windows.Rect |
bounds |
The bounds value which should be shown into view.
|
ClearHistory()
Method to cleare history of IGraphInfo class values.
Declaration
Export()
This method is used to export the diagram as an Image
Declaration
Export(Int32, Int32)
This method is used to export the diagram as an Image in a MultiplePage
Declaration
void Export(int RowCount, int ColumnCount)
Parameters
Type |
Name |
Description |
System.Int32 |
RowCount |
No of Row based on PageHeight
|
System.Int32 |
ColumnCount |
No of Column based on PageWidth
|
GetCollisionFreeLocation(CollisionState)
To find a possible position without intersecting others for any given node.
Declaration
void GetCollisionFreeLocation(CollisionState settings)
Parameters
GetCurrentPosition(RoutedEventArgs)
Represents a method which is used to get the current mouse position in the diagram.
Declaration
Point GetCurrentPosition(RoutedEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.RoutedEventArgs |
e |
Instance of System.Windows.RoutedEventArgs class.
|
Returns
Type |
System.Windows.Point |
GetObject(Object)
Represents a method which is used to get the object for the given id.
Declaration
object GetObject(object id)
Parameters
Type |
Name |
Description |
System.Object |
id |
ID of the object.
|
Returns
GetOverlappingObjects(CollisionState)
To find all overlapping objects(such as Node/Connector/Annotation) for a given node.
Declaration
List<object> GetOverlappingObjects(CollisionState state)
Parameters
Returns
Type |
System.Collections.Generic.List<System.Object> |
Import(Stream)
Represents a method which is used to add the given elements in the form of steam or xml with already existing elements of diagram control.
Declaration
void Import(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
The stream to which the diagram will be imported.
|
Load(Stream)
Represents a method which is used to load the diagram in the form of stream or xml with cleared the existing elements of diagram control.
Declaration
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
The stream to which the diagram will be loaded.
|
remove_AnnotationChanged(AnnotationChangedEventHandler)
Declaration
void remove_AnnotationChanged(AnnotationChangedEventHandler value)
Parameters
Declaration
void remove_AutoScrolled(AutoScrolledHandler value)
Parameters
remove_ConnectorEditing(ConnectorEditingEventHandler)
Declaration
void remove_ConnectorEditing(ConnectorEditingEventHandler value)
Parameters
remove_ConnectorSourceChangedEvent(ConnectorSourceChangedEventHandler)
Declaration
void remove_ConnectorSourceChangedEvent(ConnectorSourceChangedEventHandler value)
Parameters
remove_ConnectorTargetChangedEvent(ConnectorTargetChangedEventHandler)
Declaration
void remove_ConnectorTargetChangedEvent(ConnectorTargetChangedEventHandler value)
Parameters
remove_DragEnter(DragEnterEventHandler)
Declaration
void remove_DragEnter(DragEnterEventHandler value)
Parameters
remove_DragLeave(DragLeaveEventHandler)
Declaration
void remove_DragLeave(DragLeaveEventHandler value)
Parameters
remove_DragOver(DragOverEventHandler)
Declaration
void remove_DragOver(DragOverEventHandler value)
Parameters
Declaration
void remove_FreeFormDrawingEvent(FreeFormDrawingEventHandler value)
Parameters
remove_GetDrawType(DrawTypeEventHandler)
Declaration
void remove_GetDrawType(DrawTypeEventHandler value)
Parameters
remove_GetLayoutInfo(LayoutInfoHandler)
Declaration
void remove_GetLayoutInfo(LayoutInfoHandler value)
Parameters
remove_HistoryChangedEvent(HistoryChangedEventHandler)
Declaration
void remove_HistoryChangedEvent(HistoryChangedEventHandler value)
Parameters
remove_ItemAdded(ItemAddedEventHandler)
Declaration
void remove_ItemAdded(ItemAddedEventHandler value)
Parameters
remove_ItemAdding(ItemAddingEventHandler)
Declaration
void remove_ItemAdding(ItemAddingEventHandler value)
Parameters
remove_ItemDeleted(ItemDeletedEventHandler)
Declaration
void remove_ItemDeleted(ItemDeletedEventHandler value)
Parameters
remove_ItemDeletingEvent(ItemDeletingEventHandler)
Declaration
void remove_ItemDeletingEvent(ItemDeletingEventHandler value)
Parameters
remove_ItemDoubleTappedEvent(ItemDoubleTappedEventHandler)
Declaration
void remove_ItemDoubleTappedEvent(ItemDoubleTappedEventHandler value)
Parameters
remove_ItemDropEvent(ItemDropEventHandler)
Declaration
void remove_ItemDropEvent(ItemDropEventHandler value)
Parameters
remove_ItemSelectedEvent(SelectedEventHandler)
Declaration
void remove_ItemSelectedEvent(SelectedEventHandler value)
Parameters
remove_ItemSelectingEvent(SelectingEventHandler)
Declaration
void remove_ItemSelectingEvent(SelectingEventHandler value)
Parameters
remove_ItemTappedEvent(ItemTappedEventHandler)
Declaration
void remove_ItemTappedEvent(ItemTappedEventHandler value)
Parameters
remove_ItemUnSelectedEvent(UnSelectedEventHandler)
Declaration
void remove_ItemUnSelectedEvent(UnSelectedEventHandler value)
Parameters
remove_ItemUnSelectingEvent(UnSelectingEventHandler)
Declaration
void remove_ItemUnSelectingEvent(UnSelectingEventHandler value)
Parameters
remove_LayoutUpdated(LayoutUpdatedEventHandler)
Declaration
void remove_LayoutUpdated(LayoutUpdatedEventHandler value)
Parameters
remove_MenuItemClickedEvent(MenuItemClickedEventHander)
Declaration
void remove_MenuItemClickedEvent(MenuItemClickedEventHander value)
Parameters
remove_MenuOpening(MenuOpeningEventHandler)
Declaration
void remove_MenuOpening(MenuOpeningEventHandler value)
Parameters
remove_MouseDown(MouseDownEventHandler)
Declaration
void remove_MouseDown(MouseDownEventHandler value)
Parameters
remove_MouseUp(MouseUpEventHandler)
Declaration
void remove_MouseUp(MouseUpEventHandler value)
Parameters
remove_NodeChangedEvent(NodeChangedEventHandler)
Declaration
void remove_NodeChangedEvent(NodeChangedEventHandler value)
Parameters
remove_ObjectDrawn(ObjectDrawnEventHander)
Declaration
void remove_ObjectDrawn(ObjectDrawnEventHander value)
Parameters
remove_PortChanged(PortChangedEventHandler)
Declaration
void remove_PortChanged(PortChangedEventHandler value)
Parameters
remove_Printing(PrintingEventHandler)
Declaration
void remove_Printing(PrintingEventHandler value)
Parameters
remove_SelectorChangedEvent(SelectorChangedEventHandler)
Declaration
void remove_SelectorChangedEvent(SelectorChangedEventHandler value)
Parameters
remove_SwimlaneChildChangedEvent(SwimlaneChildChangedEventHandler)
Declaration
void remove_SwimlaneChildChangedEvent(SwimlaneChildChangedEventHandler value)
Parameters
remove_SymbolDroppingEvent(SymbolDroppingEventHandler)
Declaration
void remove_SymbolDroppingEvent(SymbolDroppingEventHandler value)
Parameters
remove_ViewPortChangedEvent(ViewPortChangedEventHandler)
Declaration
void remove_ViewPortChangedEvent(ViewPortChangedEventHandler value)
Parameters
Save(Stream)
Save the diagram into xml or steam for the given stream.
Declaration
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
The stream to which the diagram will be stored.
|
Events
AnnotationChanged
Occurs when the annotation is changed.
Declaration
event AnnotationChangedEventHandler AnnotationChanged
Event Type
Occurs when perform autoscroll for diagram elements.
Declaration
event AutoScrolledHandler AutoScrolled
Event Type
ConnectorEditing
Occurs when the connector is editing.
Declaration
event ConnectorEditingEventHandler ConnectorEditing
Event Type
ConnectorSourceChangedEvent
Occurs when the connector source thumb is changed..
Declaration
event ConnectorSourceChangedEventHandler ConnectorSourceChangedEvent
Event Type
ConnectorTargetChangedEvent
Occurs when the connector target thumb is changed.
Declaration
event ConnectorTargetChangedEventHandler ConnectorTargetChangedEvent
Event Type
DragEnter
Occurs when the input system reports an underlying drag event with this element as the drag target.
Declaration
event DragEnterEventHandler DragEnter
Event Type
DragLeave
Occurs when the input system reports an underlying drag event with this element as the drag origin.
Declaration
event DragLeaveEventHandler DragLeave
Event Type
DragOver
Occurs when the input system reports an underlying drag event with this element as the potential drop target.
Declaration
event DragOverEventHandler DragOver
Event Type
Occurs when draw a freeform connector in diagram.
Declaration
event FreeFormDrawingEventHandler FreeFormDrawingEvent
Event Type
GetDrawType
Occurs when draw a object via drawingtool to decide the drawing object.
Declaration
event DrawTypeEventHandler GetDrawType
Event Type
GetLayoutInfo
Occurs when changes occurs in layout.
Declaration
event LayoutInfoHandler GetLayoutInfo
Event Type
HistoryChangedEvent
Occurs while there is a change in HistoryStack.
Declaration
event HistoryChangedEventHandler HistoryChangedEvent
Event Type
ItemAdded
Occurs when the item is added to diagram.
Declaration
event ItemAddedEventHandler ItemAdded
Event Type
ItemAdding
Occurs before an item is added to the diagram.
Declaration
event ItemAddingEventHandler ItemAdding
Event Type
ItemDeleted
Occurs when the element is Deleted.
Declaration
event ItemDeletedEventHandler ItemDeleted
Event Type
ItemDeletingEvent
Occurs when the element goes for delete.
Declaration
event ItemDeletingEventHandler ItemDeletingEvent
Event Type
ItemDoubleTappedEvent
Occurs when the mouse pointer is over the elements and double clicked on the diagram or diagram elements.
Declaration
event ItemDoubleTappedEventHandler ItemDoubleTappedEvent
Event Type
ItemDropEvent
Occurs when the input system reports an underlying drop event with this element as the drop target.
Declaration
event ItemDropEventHandler ItemDropEvent
Event Type
ItemSelectedEvent
Occurs when the mouse pointer is over the elements and a diagram elements is selected.
Declaration
event SelectedEventHandler ItemSelectedEvent
Event Type
ItemSelectingEvent
Occurs when the element goes for select.
Declaration
event SelectingEventHandler ItemSelectingEvent
Event Type
ItemTappedEvent
Occurs when the mouse pointer is over the elements and clicked on the diagram or diagram elements.
Declaration
event ItemTappedEventHandler ItemTappedEvent
Event Type
ItemUnSelectedEvent
Occurs when the mouse pointer is over the elements and the selection goes to unselection.
Declaration
event UnSelectedEventHandler ItemUnSelectedEvent
Event Type
ItemUnSelectingEvent
Occurs when the element goes for unselect.
Declaration
event UnSelectingEventHandler ItemUnSelectingEvent
Event Type
LayoutUpdated
Occurs when the layout is changed or modified.
Declaration
event LayoutUpdatedEventHandler LayoutUpdated
Event Type
Occurs when a DiagramMenuItem is clicked.
Declaration
event MenuItemClickedEventHander MenuItemClickedEvent
Event Type
Occurs when any context menu on the element is opened.
Declaration
event MenuOpeningEventHandler MenuOpening
Event Type
MouseDown
Occurs when the mouse pointer is over the diagram or diagram elements and a mouse button is pressed.
Declaration
event MouseDownEventHandler MouseDown
Event Type
MouseUp
Occurs when the mouse pointer is over the diagram or diagram elements and a mouse button is released.
Declaration
event MouseUpEventHandler MouseUp
Event Type
NodeChangedEvent
Occurs when the node is changed.
Declaration
event NodeChangedEventHandler NodeChangedEvent
Event Type
ObjectDrawn
Occurs when draw a element in the diagram.
Declaration
event ObjectDrawnEventHander ObjectDrawn
Event Type
PortChanged
Occurs when the port is changed.
Declaration
event PortChangedEventHandler PortChanged
Event Type
Printing
Occurs when print the diagram.
Declaration
event PrintingEventHandler Printing
Event Type
SelectorChangedEvent
Occurs when the selection with their porperty value is changed.
Declaration
event SelectorChangedEventHandler SelectorChangedEvent
Event Type
SwimlaneChildChangedEvent
Occurs when the SwimlaneChild is changed.
Declaration
event SwimlaneChildChangedEventHandler SwimlaneChildChangedEvent
Event Type
SymbolDroppingEvent
Occurs when drag and drop the symbol from stencil to diagram..
Declaration
event SymbolDroppingEventHandler SymbolDroppingEvent
Event Type
ViewPortChangedEvent
Occurs when the diagram bounds is changed.
Declaration
event ViewPortChangedEventHandler ViewPortChangedEvent
Event Type