alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ViewerEventSink

    Event sink for diagram view.

    Inheritance
    System.Object
    Service
    EventSink
    ViewerEventSink
    DiagramViewerEventSink
    Inherited Members
    EventSink.add_CancelCollectionChanged(CancelCollectionChangedEventHandler)
    EventSink.add_PropertyChanged(PropertyChangedEventHandler)
    EventSink.add_PropertyChanging(PropertyChangingEventHandler)
    EventSink.AddHandler(EventKey, Delegate)
    EventSink.CancelCollectionChanged
    EventSink.Handlers
    EventSink.HighPriorityHandlers
    EventSink.PropertyChanged
    EventSink.PropertyChanging
    EventSink.RaiseCancelCollectionChangedEvent(CollectionExEventArgs)
    EventSink.RaisePropertyChangedEvent(IPropertyContainer, String)
    EventSink.RaisePropertyChangingEvent(IPropertyContainer, String, Object)
    EventSink.remove_CancelCollectionChanged(CancelCollectionChangedEventHandler)
    EventSink.remove_PropertyChanged(PropertyChangedEventHandler)
    EventSink.remove_PropertyChanging(PropertyChangingEventHandler)
    EventSink.RemoveHandler(EventKey, Delegate)
    Service.OnPause()
    Service.OnResume()
    Service.OnStart()
    Service.OnStop()
    Service.Pause()
    Service.Paused
    Service.Resume()
    Service.Resumed
    Service.ServiceStatus
    Service.Start()
    Service.Started
    Service.Stop()
    Service.Stopped
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class ViewerEventSink : EventSink

    Constructors

    ViewerEventSink()

    Declaration
    public ViewerEventSink()

    Methods

    add_Deserialized(DeserializeEventHandler)

    Declaration
    public void add_Deserialized(DeserializeEventHandler value)
    Parameters
    Type Name Description
    DeserializeEventHandler value

    add_MagnificationChanged(ViewMagnificationEventHandler)

    Declaration
    public void add_MagnificationChanged(ViewMagnificationEventHandler value)
    Parameters
    Type Name Description
    ViewMagnificationEventHandler value

    add_NodeClick(NodeMouseEventHandler)

    Declaration
    public void add_NodeClick(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    add_NodeCollectionChanged(CollectionExEventHandler)

    Declaration
    public override void add_NodeCollectionChanged(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value
    Overrides
    EventSink.add_NodeCollectionChanged(CollectionExEventHandler)

    add_NodeCollectionChanging(CollectionExEventHandler)

    Declaration
    public override void add_NodeCollectionChanging(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value
    Overrides
    EventSink.add_NodeCollectionChanging(CollectionExEventHandler)

    add_NodeDeselected(NodeSelectedEventHandler)

    Declaration
    public void add_NodeDeselected(NodeSelectedEventHandler value)
    Parameters
    Type Name Description
    NodeSelectedEventHandler value

    add_NodeDoubleClick(NodeMouseEventHandler)

    Declaration
    public void add_NodeDoubleClick(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    add_NodeDragEnter(NodeDragEnterEventHandler)

    Declaration
    public void add_NodeDragEnter(NodeDragEnterEventHandler value)
    Parameters
    Type Name Description
    NodeDragEnterEventHandler value

    add_NodeDragLeave(NodeDragLeaveEventHandler)

    Declaration
    public void add_NodeDragLeave(NodeDragLeaveEventHandler value)
    Parameters
    Type Name Description
    NodeDragLeaveEventHandler value

    add_NodeDragOver(NodeDragOverEventHandler)

    Declaration
    public void add_NodeDragOver(NodeDragOverEventHandler value)
    Parameters
    Type Name Description
    NodeDragOverEventHandler value

    add_NodeMouseEnter(NodeMouseEventHandler)

    Declaration
    public void add_NodeMouseEnter(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    add_NodeMouseLeave(NodeMouseEventHandler)

    Declaration
    public void add_NodeMouseLeave(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    add_NodeSelected(NodeSelectedEventHandler)

    Declaration
    public void add_NodeSelected(NodeSelectedEventHandler value)
    Parameters
    Type Name Description
    NodeSelectedEventHandler value

    add_OriginChanged(ViewOriginEventHandler)

    Declaration
    public void add_OriginChanged(ViewOriginEventHandler value)
    Parameters
    Type Name Description
    ViewOriginEventHandler value

    add_ScrollVirtualBoundsChanged(ViewScrollVirtualBoundsEventHandler)

    Declaration
    public void add_ScrollVirtualBoundsChanged(ViewScrollVirtualBoundsEventHandler value)
    Parameters
    Type Name Description
    ViewScrollVirtualBoundsEventHandler value

    add_SelectionListChanged(CollectionExEventHandler)

    Declaration
    public void add_SelectionListChanged(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value

    add_SelectionListChanging(CollectionExEventHandler)

    Declaration
    public void add_SelectionListChanging(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value

    add_Serialized(SerializeEventHandler)

    Declaration
    public void add_Serialized(SerializeEventHandler value)
    Parameters
    Type Name Description
    SerializeEventHandler value

    RaiseDeSerialize(SerializationEventsArgs)

    Raises the diagram DeSerialize event while loading the diagram file.

    Declaration
    public void RaiseDeSerialize(SerializationEventsArgs evtArgs)
    Parameters
    Type Name Description
    SerializationEventsArgs evtArgs

    The SerializationEventsArgs instance containing the event data.

    RaiseMagnificationChanged(ViewMagnificationEventArgs)

    Raises the magnification changed.

    Declaration
    public void RaiseMagnificationChanged(ViewMagnificationEventArgs evtArgs)
    Parameters
    Type Name Description
    ViewMagnificationEventArgs evtArgs

    The ViewMagnificationEventArgs instance containing the event data.

    RaiseNodeClick(NodeMouseEventArgs)

    Raises the node click.

    Declaration
    public void RaiseNodeClick(NodeMouseEventArgs evtArgs)
    Parameters
    Type Name Description
    NodeMouseEventArgs evtArgs

    The NodeMouseEventArgs instance containing the event data.

    RaiseNodeDeselected(NodeSelectedEventArgs)

    Raises the node deselected.

    Declaration
    public void RaiseNodeDeselected(NodeSelectedEventArgs evtArgs)
    Parameters
    Type Name Description
    NodeSelectedEventArgs evtArgs

    The NodeSelectedEventArgs instance containing the event data.

    RaiseNodeDoubleClick(NodeMouseEventArgs)

    Raises the node double click.

    Declaration
    public void RaiseNodeDoubleClick(NodeMouseEventArgs evtArgs)
    Parameters
    Type Name Description
    NodeMouseEventArgs evtArgs

    The NodeMouseEventArgs instance containing the event data.

    RaiseNodeDragEnter(DragEnterEventArgs)

    Raises the node enter into the diagram.

    Declaration
    public void RaiseNodeDragEnter(DragEnterEventArgs evtArgs)
    Parameters
    Type Name Description
    DragEnterEventArgs evtArgs

    The DragEnterEventArgs instance containing the event data.

    RaiseNodeDragLeave(DragLeaveEventArgs)

    Raises the node leaving from the diagram.

    Declaration
    public void RaiseNodeDragLeave(DragLeaveEventArgs evtArgs)
    Parameters
    Type Name Description
    DragLeaveEventArgs evtArgs

    The DragLeaveEventArgs instance containing the event data.

    RaiseNodeDragOver(DragOverEventArgs)

    Raises the node drag overing into the diagram.

    Declaration
    public void RaiseNodeDragOver(DragOverEventArgs evtArgs)
    Parameters
    Type Name Description
    DragOverEventArgs evtArgs

    The DragOverEventArgs instance containing the event data.

    RaiseNodeMouseEnter(NodeMouseEventArgs)

    Raises the node mouse enter.

    Declaration
    public void RaiseNodeMouseEnter(NodeMouseEventArgs evtArgs)
    Parameters
    Type Name Description
    NodeMouseEventArgs evtArgs

    The NodeMouseEventArgs instance containing the event data.

    RaiseNodeMouseLeave(NodeMouseEventArgs)

    Raises the node mouse leave.

    Declaration
    public void RaiseNodeMouseLeave(NodeMouseEventArgs evtArgs)
    Parameters
    Type Name Description
    NodeMouseEventArgs evtArgs

    The NodeMouseEventArgs instance containing the event data.

    RaiseNodesChangedEvent(CollectionExEventArgs)

    Raises the node collection changed event.

    Declaration
    public override void RaiseNodesChangedEvent(CollectionExEventArgs evtArgs)
    Parameters
    Type Name Description
    CollectionExEventArgs evtArgs

    The CollectionExEventArgs instance containing the event data.

    Overrides
    EventSink.RaiseNodesChangedEvent(CollectionExEventArgs)

    RaiseNodesChangingEvent(CollectionExEventArgs)

    Raises the node collection changing event.

    Declaration
    public override bool RaiseNodesChangingEvent(CollectionExEventArgs evtArgs)
    Parameters
    Type Name Description
    CollectionExEventArgs evtArgs

    The CollectionExEventArgs instance containing the event data.

    Returns
    Type Description
    System.Boolean

    true, if raise nodes changing event.

    Overrides
    EventSink.RaiseNodesChangingEvent(CollectionExEventArgs)

    RaiseNodeSelected(NodeSelectedEventArgs)

    Raises the node selected.

    Declaration
    public void RaiseNodeSelected(NodeSelectedEventArgs evtArgs)
    Parameters
    Type Name Description
    NodeSelectedEventArgs evtArgs

    The NodeSelectedEventArgs instance containing the event data.

    RaiseOriginChanged(ViewOriginEventArgs)

    Raises the origin changed.

    Declaration
    public void RaiseOriginChanged(ViewOriginEventArgs evtArgs)
    Parameters
    Type Name Description
    ViewOriginEventArgs evtArgs

    The ViewOriginEventArgs instance containing the event data.

    RaiseScrollVirtualBoundsChanged(ViewScrollVirtualBoundsEventArgs)

    Raises the scroll virtual bounds changed.

    Declaration
    public void RaiseScrollVirtualBoundsChanged(ViewScrollVirtualBoundsEventArgs evtArgs)
    Parameters
    Type Name Description
    ViewScrollVirtualBoundsEventArgs evtArgs

    The ViewScrollVirtualBoundsEventArgs instance containing the event data.

    RaiseSelectionChangedEvent(CollectionExEventArgs)

    Raises the selection list changed event.

    Declaration
    public void RaiseSelectionChangedEvent(CollectionExEventArgs evtArgs)
    Parameters
    Type Name Description
    CollectionExEventArgs evtArgs

    The CollectionExEventArgs instance containing the event data.

    RaiseSelectionChangingEvent(CollectionExEventArgs)

    Raises the selection list changing event.

    Declaration
    public void RaiseSelectionChangingEvent(CollectionExEventArgs evtArgs)
    Parameters
    Type Name Description
    CollectionExEventArgs evtArgs

    The CollectionExEventArgs instance containing the event data.

    RaiseSerialize(SerializationEventsArgs)

    Raises the diagram Serialize event while saving the diagram file.

    Declaration
    public void RaiseSerialize(SerializationEventsArgs evtArgs)
    Parameters
    Type Name Description
    SerializationEventsArgs evtArgs

    The SerializationEventsArgs instance containing the event data.

    remove_Deserialized(DeserializeEventHandler)

    Declaration
    public void remove_Deserialized(DeserializeEventHandler value)
    Parameters
    Type Name Description
    DeserializeEventHandler value

    remove_MagnificationChanged(ViewMagnificationEventHandler)

    Declaration
    public void remove_MagnificationChanged(ViewMagnificationEventHandler value)
    Parameters
    Type Name Description
    ViewMagnificationEventHandler value

    remove_NodeClick(NodeMouseEventHandler)

    Declaration
    public void remove_NodeClick(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    remove_NodeCollectionChanged(CollectionExEventHandler)

    Declaration
    public override void remove_NodeCollectionChanged(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value
    Overrides
    EventSink.remove_NodeCollectionChanged(CollectionExEventHandler)

    remove_NodeCollectionChanging(CollectionExEventHandler)

    Declaration
    public override void remove_NodeCollectionChanging(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value
    Overrides
    EventSink.remove_NodeCollectionChanging(CollectionExEventHandler)

    remove_NodeDeselected(NodeSelectedEventHandler)

    Declaration
    public void remove_NodeDeselected(NodeSelectedEventHandler value)
    Parameters
    Type Name Description
    NodeSelectedEventHandler value

    remove_NodeDoubleClick(NodeMouseEventHandler)

    Declaration
    public void remove_NodeDoubleClick(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    remove_NodeDragEnter(NodeDragEnterEventHandler)

    Declaration
    public void remove_NodeDragEnter(NodeDragEnterEventHandler value)
    Parameters
    Type Name Description
    NodeDragEnterEventHandler value

    remove_NodeDragLeave(NodeDragLeaveEventHandler)

    Declaration
    public void remove_NodeDragLeave(NodeDragLeaveEventHandler value)
    Parameters
    Type Name Description
    NodeDragLeaveEventHandler value

    remove_NodeDragOver(NodeDragOverEventHandler)

    Declaration
    public void remove_NodeDragOver(NodeDragOverEventHandler value)
    Parameters
    Type Name Description
    NodeDragOverEventHandler value

    remove_NodeMouseEnter(NodeMouseEventHandler)

    Declaration
    public void remove_NodeMouseEnter(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    remove_NodeMouseLeave(NodeMouseEventHandler)

    Declaration
    public void remove_NodeMouseLeave(NodeMouseEventHandler value)
    Parameters
    Type Name Description
    NodeMouseEventHandler value

    remove_NodeSelected(NodeSelectedEventHandler)

    Declaration
    public void remove_NodeSelected(NodeSelectedEventHandler value)
    Parameters
    Type Name Description
    NodeSelectedEventHandler value

    remove_OriginChanged(ViewOriginEventHandler)

    Declaration
    public void remove_OriginChanged(ViewOriginEventHandler value)
    Parameters
    Type Name Description
    ViewOriginEventHandler value

    remove_ScrollVirtualBoundsChanged(ViewScrollVirtualBoundsEventHandler)

    Declaration
    public void remove_ScrollVirtualBoundsChanged(ViewScrollVirtualBoundsEventHandler value)
    Parameters
    Type Name Description
    ViewScrollVirtualBoundsEventHandler value

    remove_SelectionListChanged(CollectionExEventHandler)

    Declaration
    public void remove_SelectionListChanged(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value

    remove_SelectionListChanging(CollectionExEventHandler)

    Declaration
    public void remove_SelectionListChanging(CollectionExEventHandler value)
    Parameters
    Type Name Description
    CollectionExEventHandler value

    remove_Serialized(SerializeEventHandler)

    Declaration
    public void remove_Serialized(SerializeEventHandler value)
    Parameters
    Type Name Description
    SerializeEventHandler value

    Events

    Deserialized

    Occurs While loading the Diagram file

    Declaration
    public event DeserializeEventHandler Deserialized
    Event Type
    Type
    DeserializeEventHandler

    MagnificationChanged

    Occurs when view magnification changed.

    Declaration
    public event ViewMagnificationEventHandler MagnificationChanged
    Event Type
    Type
    ViewMagnificationEventHandler

    NodeClick

    Occurs when click on node.

    Declaration
    public event NodeMouseEventHandler NodeClick
    Event Type
    Type
    NodeMouseEventHandler

    NodeCollectionChanged

    Occurs when node collection changed.

    Declaration
    public override event CollectionExEventHandler NodeCollectionChanged
    Event Type
    Type
    CollectionExEventHandler
    Overrides
    EventSink.NodeCollectionChanged

    NodeCollectionChanging

    Occurs when node collection changing.

    Declaration
    public override event CollectionExEventHandler NodeCollectionChanging
    Event Type
    Type
    CollectionExEventHandler
    Overrides
    EventSink.NodeCollectionChanging

    NodeDeselected

    Occurs when view node deselected.

    Declaration
    public event NodeSelectedEventHandler NodeDeselected
    Event Type
    Type
    NodeSelectedEventHandler

    NodeDoubleClick

    Occurs when double click on node.

    Declaration
    public event NodeMouseEventHandler NodeDoubleClick
    Event Type
    Type
    NodeMouseEventHandler

    NodeDragEnter

    Occurs when Node Entered into the Diagram.

    Declaration
    public event NodeDragEnterEventHandler NodeDragEnter
    Event Type
    Type
    NodeDragEnterEventHandler

    NodeDragLeave

    Occurs when Node leaving from the Diagram.

    Declaration
    public event NodeDragLeaveEventHandler NodeDragLeave
    Event Type
    Type
    NodeDragLeaveEventHandler

    NodeDragOver

    Occurs when Node Dragging over into the Diagram.

    Declaration
    public event NodeDragOverEventHandler NodeDragOver
    Event Type
    Type
    NodeDragOverEventHandler

    NodeMouseEnter

    Occurs when mouse enter inside node.

    Declaration
    public event NodeMouseEventHandler NodeMouseEnter
    Event Type
    Type
    NodeMouseEventHandler

    NodeMouseLeave

    Occurs when mouse leave node.

    Declaration
    public event NodeMouseEventHandler NodeMouseLeave
    Event Type
    Type
    NodeMouseEventHandler

    NodeSelected

    Occurs when view node selected.

    Declaration
    public event NodeSelectedEventHandler NodeSelected
    Event Type
    Type
    NodeSelectedEventHandler

    OriginChanged

    Occurs when view origin changed.

    Declaration
    public event ViewOriginEventHandler OriginChanged
    Event Type
    Type
    ViewOriginEventHandler

    ScrollVirtualBoundsChanged

    Occurs when scroll virtual bounds changed.

    Declaration
    public event ViewScrollVirtualBoundsEventHandler ScrollVirtualBoundsChanged
    Event Type
    Type
    ViewScrollVirtualBoundsEventHandler

    SelectionListChanged

    Occurs when selection list changed.

    Declaration
    public event CollectionExEventHandler SelectionListChanged
    Event Type
    Type
    CollectionExEventHandler

    SelectionListChanging

    Occurs when selection list changing.

    Declaration
    public event CollectionExEventHandler SelectionListChanging
    Event Type
    Type
    CollectionExEventHandler

    Serialized

    Occurs While Saving the Diagram file

    Declaration
    public event SerializeEventHandler Serialized
    Event Type
    Type
    SerializeEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved