Interface IGraphInfo
Represents to gets more / additional information about the diagram
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public interface IGraphInfo
Properties
Commands
Gets the diagramming commands.
Declaration
IDiagramCommands Commands { get; }
Property Value
| Type |
|---|
| IDiagramCommands |
Viewport
Gets the bounds of the viewport.
Declaration
Rect Viewport { get; }
Property Value
| Type |
|---|
| System.Windows.Rect |
Methods
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
void ClearHistory()
Export()
This method is used to export the diagram as an Image
Declaration
void Export()
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
| Type | Name | Description |
|---|---|---|
| CollisionState | settings | Instance of CollisionState |
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
| Type |
|---|
| System.Object |
GetOverlappingObjects(CollisionState)
To find all overlapping objects(such as Node/Connector/Annotation) for a given node.
Declaration
List<object> GetOverlappingObjects(CollisionState state)
Parameters
| Type | Name | Description |
|---|---|---|
| CollisionState | state | Instance of CollisionState |
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
void Load(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream to which the diagram will be loaded. |
Save(Stream)
Save the diagram into xml or steam for the given stream.
Declaration
void Save(Stream stream)
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
| Type |
|---|
| AnnotationChangedEventHandler |
AutoScrolled
Occurs when perform autoscroll for diagram elements.
Declaration
event AutoScrolledHandler AutoScrolled
Event Type
| Type |
|---|
| AutoScrolledHandler |
ConnectorEditing
Occurs when the connector is editing.
Declaration
event ConnectorEditingEventHandler ConnectorEditing
Event Type
| Type |
|---|
| ConnectorEditingEventHandler |
ConnectorSourceChangedEvent
Occurs when the connector source thumb is changed..
Declaration
event ConnectorSourceChangedEventHandler ConnectorSourceChangedEvent
Event Type
| Type |
|---|
| ConnectorSourceChangedEventHandler |
ConnectorTargetChangedEvent
Occurs when the connector target thumb is changed.
Declaration
event ConnectorTargetChangedEventHandler ConnectorTargetChangedEvent
Event Type
| Type |
|---|
| ConnectorTargetChangedEventHandler |
DragEnter
Occurs when the input system reports an underlying drag event with this element as the drag target.
Declaration
event DragEnterEventHandler DragEnter
Event Type
| Type |
|---|
| DragEnterEventHandler |
DragLeave
Occurs when the input system reports an underlying drag event with this element as the drag origin.
Declaration
event DragLeaveEventHandler DragLeave
Event Type
| Type |
|---|
| DragLeaveEventHandler |
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
| Type |
|---|
| DragOverEventHandler |
FreeFormDrawingEvent
Occurs when draw a freeform connector in diagram.
Declaration
event FreeFormDrawingEventHandler FreeFormDrawingEvent
Event Type
| Type |
|---|
| FreeFormDrawingEventHandler |
GetDrawType
Occurs when draw a object via drawingtool to decide the drawing object.
Declaration
event DrawTypeEventHandler GetDrawType
Event Type
| Type |
|---|
| DrawTypeEventHandler |
GetLayoutInfo
Occurs when changes occurs in layout.
Declaration
event LayoutInfoHandler GetLayoutInfo
Event Type
| Type |
|---|
| LayoutInfoHandler |
Remarks
GetLayoutInfo fires only for Organization layout type.
HistoryChangedEvent
Occurs while there is a change in HistoryStack.
Declaration
event HistoryChangedEventHandler HistoryChangedEvent
Event Type
| Type |
|---|
| HistoryChangedEventHandler |
ItemAdded
Occurs when the item is added to diagram.
Declaration
event ItemAddedEventHandler ItemAdded
Event Type
| Type |
|---|
| ItemAddedEventHandler |
ItemAdding
Occurs before an item is added to the diagram.
Declaration
event ItemAddingEventHandler ItemAdding
Event Type
| Type |
|---|
| ItemAddingEventHandler |
ItemDeleted
Occurs when the element is Deleted.
Declaration
event ItemDeletedEventHandler ItemDeleted
Event Type
| Type |
|---|
| ItemDeletedEventHandler |
ItemDeletingEvent
Occurs when the element goes for delete.
Declaration
event ItemDeletingEventHandler ItemDeletingEvent
Event Type
| Type |
|---|
| ItemDeletingEventHandler |
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
| Type |
|---|
| ItemDoubleTappedEventHandler |
ItemDropEvent
Occurs when the input system reports an underlying drop event with this element as the drop target.
Declaration
event ItemDropEventHandler ItemDropEvent
Event Type
| Type |
|---|
| ItemDropEventHandler |
ItemSelectedEvent
Occurs when the mouse pointer is over the elements and a diagram elements is selected.
Declaration
event SelectedEventHandler ItemSelectedEvent
Event Type
| Type |
|---|
| SelectedEventHandler |
ItemSelectingEvent
Occurs when the element goes for select.
Declaration
event SelectingEventHandler ItemSelectingEvent
Event Type
| Type |
|---|
| SelectingEventHandler |
ItemTappedEvent
Occurs when the mouse pointer is over the elements and clicked on the diagram or diagram elements.
Declaration
event ItemTappedEventHandler ItemTappedEvent
Event Type
| Type |
|---|
| ItemTappedEventHandler |
ItemUnSelectedEvent
Occurs when the mouse pointer is over the elements and the selection goes to unselection.
Declaration
event UnSelectedEventHandler ItemUnSelectedEvent
Event Type
| Type |
|---|
| UnSelectedEventHandler |
ItemUnSelectingEvent
Occurs when the element goes for unselect.
Declaration
event UnSelectingEventHandler ItemUnSelectingEvent
Event Type
| Type |
|---|
| UnSelectingEventHandler |
LayoutUpdated
Occurs when the layout is changed or modified.
Declaration
event LayoutUpdatedEventHandler LayoutUpdated
Event Type
| Type |
|---|
| LayoutUpdatedEventHandler |
MenuItemClickedEvent
Occurs when a DiagramMenuItem is clicked.
Declaration
event MenuItemClickedEventHander MenuItemClickedEvent
Event Type
| Type |
|---|
| MenuItemClickedEventHander |
MenuOpening
Occurs when any context menu on the element is opened.
Declaration
event MenuOpeningEventHandler MenuOpening
Event Type
| Type |
|---|
| MenuOpeningEventHandler |
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
| Type |
|---|
| MouseDownEventHandler |
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
| Type |
|---|
| MouseUpEventHandler |
NodeChangedEvent
Occurs when the node is changed.
Declaration
event NodeChangedEventHandler NodeChangedEvent
Event Type
| Type |
|---|
| NodeChangedEventHandler |
ObjectDrawn
Occurs when draw a element in the diagram.
Declaration
event ObjectDrawnEventHander ObjectDrawn
Event Type
| Type |
|---|
| ObjectDrawnEventHander |
PortChanged
Occurs when the port is changed.
Declaration
event PortChangedEventHandler PortChanged
Event Type
| Type |
|---|
| PortChangedEventHandler |
Printing
Occurs when print the diagram.
Declaration
event PrintingEventHandler Printing
Event Type
| Type |
|---|
| PrintingEventHandler |
SelectorChangedEvent
Occurs when the selection with their porperty value is changed.
Declaration
event SelectorChangedEventHandler SelectorChangedEvent
Event Type
| Type |
|---|
| SelectorChangedEventHandler |
SwimlaneChildChangedEvent
Occurs when the SwimlaneChild is changed.
Declaration
event SwimlaneChildChangedEventHandler SwimlaneChildChangedEvent
Event Type
| Type |
|---|
| SwimlaneChildChangedEventHandler |
SymbolDroppingEvent
Occurs when drag and drop the symbol from stencil to diagram..
Declaration
event SymbolDroppingEventHandler SymbolDroppingEvent
Event Type
| Type |
|---|
| SymbolDroppingEventHandler |
ViewPortChangedEvent
Occurs when the diagram bounds is changed.
Declaration
event ViewPortChangedEventHandler ViewPortChangedEvent
Event Type
| Type |
|---|
| ViewPortChangedEventHandler |