menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IGraphInfo - API Reference

    Show / Hide Table of Contents

    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 Description
    IDiagramCommands

    Viewport

    Gets the bounds of the viewport.

    Declaration
    Rect Viewport { get; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    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 Description
    AnnotationChangedEventHandler

    AutoScrolled

    Occurs when perform autoscroll for diagram elements.

    Declaration
    event AutoScrolledHandler AutoScrolled
    Event Type
    Type Description
    AutoScrolledHandler

    ConnectorEditing

    Occurs when the connector is editing.

    Declaration
    event ConnectorEditingEventHandler ConnectorEditing
    Event Type
    Type Description
    ConnectorEditingEventHandler

    ConnectorSourceChangedEvent

    Occurs when the connector source thumb is changed..

    Declaration
    event ConnectorSourceChangedEventHandler ConnectorSourceChangedEvent
    Event Type
    Type Description
    ConnectorSourceChangedEventHandler

    ConnectorTargetChangedEvent

    Occurs when the connector target thumb is changed.

    Declaration
    event ConnectorTargetChangedEventHandler ConnectorTargetChangedEvent
    Event Type
    Type Description
    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 Description
    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 Description
    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 Description
    DragOverEventHandler

    FreeFormDrawingEvent

    Occurs when draw a freeform connector in diagram.

    Declaration
    event FreeFormDrawingEventHandler FreeFormDrawingEvent
    Event Type
    Type Description
    FreeFormDrawingEventHandler

    GetDrawType

    Occurs when draw a object via drawingtool to decide the drawing object.

    Declaration
    event DrawTypeEventHandler GetDrawType
    Event Type
    Type Description
    DrawTypeEventHandler

    GetLayoutInfo

    Occurs when changes occurs in layout.

    Declaration
    event LayoutInfoHandler GetLayoutInfo
    Event Type
    Type Description
    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 Description
    HistoryChangedEventHandler

    ItemAdded

    Occurs when the item is added to diagram.

    Declaration
    event ItemAddedEventHandler ItemAdded
    Event Type
    Type Description
    ItemAddedEventHandler

    ItemAdding

    Occurs before an item is added to the diagram.

    Declaration
    event ItemAddingEventHandler ItemAdding
    Event Type
    Type Description
    ItemAddingEventHandler

    ItemDeleted

    Occurs when the element is Deleted.

    Declaration
    event ItemDeletedEventHandler ItemDeleted
    Event Type
    Type Description
    ItemDeletedEventHandler

    ItemDeletingEvent

    Occurs when the element goes for delete.

    Declaration
    event ItemDeletingEventHandler ItemDeletingEvent
    Event Type
    Type Description
    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 Description
    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 Description
    ItemDropEventHandler

    ItemSelectedEvent

    Occurs when the mouse pointer is over the elements and a diagram elements is selected.

    Declaration
    event SelectedEventHandler ItemSelectedEvent
    Event Type
    Type Description
    SelectedEventHandler

    ItemSelectingEvent

    Occurs when the element goes for select.

    Declaration
    event SelectingEventHandler ItemSelectingEvent
    Event Type
    Type Description
    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 Description
    ItemTappedEventHandler

    ItemUnSelectedEvent

    Occurs when the mouse pointer is over the elements and the selection goes to unselection.

    Declaration
    event UnSelectedEventHandler ItemUnSelectedEvent
    Event Type
    Type Description
    UnSelectedEventHandler

    ItemUnSelectingEvent

    Occurs when the element goes for unselect.

    Declaration
    event UnSelectingEventHandler ItemUnSelectingEvent
    Event Type
    Type Description
    UnSelectingEventHandler

    LayoutUpdated

    Occurs when the layout is changed or modified.

    Declaration
    event LayoutUpdatedEventHandler LayoutUpdated
    Event Type
    Type Description
    LayoutUpdatedEventHandler

    MenuItemClickedEvent

    Occurs when a DiagramMenuItem is clicked.

    Declaration
    event MenuItemClickedEventHander MenuItemClickedEvent
    Event Type
    Type Description
    MenuItemClickedEventHander

    MenuOpening

    Occurs when any context menu on the element is opened.

    Declaration
    event MenuOpeningEventHandler MenuOpening
    Event Type
    Type Description
    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 Description
    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 Description
    MouseUpEventHandler

    NodeChangedEvent

    Occurs when the node is changed.

    Declaration
    event NodeChangedEventHandler NodeChangedEvent
    Event Type
    Type Description
    NodeChangedEventHandler

    ObjectDrawn

    Occurs when draw a element in the diagram.

    Declaration
    event ObjectDrawnEventHander ObjectDrawn
    Event Type
    Type Description
    ObjectDrawnEventHander

    PortChanged

    Occurs when the port is changed.

    Declaration
    event PortChangedEventHandler PortChanged
    Event Type
    Type Description
    PortChangedEventHandler

    Printing

    Occurs when print the diagram.

    Declaration
    event PrintingEventHandler Printing
    Event Type
    Type Description
    PrintingEventHandler

    SelectorChangedEvent

    Occurs when the selection with their porperty value is changed.

    Declaration
    event SelectorChangedEventHandler SelectorChangedEvent
    Event Type
    Type Description
    SelectorChangedEventHandler

    SwimlaneChildChangedEvent

    Occurs when the SwimlaneChild is changed.

    Declaration
    event SwimlaneChildChangedEventHandler SwimlaneChildChangedEvent
    Event Type
    Type Description
    SwimlaneChildChangedEventHandler

    SymbolDroppingEvent

    Occurs when drag and drop the symbol from stencil to diagram..

    Declaration
    event SymbolDroppingEventHandler SymbolDroppingEvent
    Event Type
    Type Description
    SymbolDroppingEventHandler

    ViewPortChangedEvent

    Occurs when the diagram bounds is changed.

    Declaration
    event ViewPortChangedEventHandler ViewPortChangedEvent
    Event Type
    Type Description
    ViewPortChangedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved