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
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
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
Type |
---|
DragOverEventHandler |
FreeFormDrawingEvent
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
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
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
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
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
MenuItemClickedEvent
Occurs when a DiagramMenuItem is clicked.
Declaration
event MenuItemClickedEventHander MenuItemClickedEvent
Event Type
MenuOpening
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
Type |
---|
MouseUpEventHandler |
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
Type |
---|
PrintingEventHandler |
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