Class EventSink
Even sink service.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public abstract class EventSink : Service
Constructors
EventSink()
Initializes a new instance of the EventSink class.
Declaration
public EventSink()
Properties
Handlers
Gets the handlers.
Declaration
protected Hashtable Handlers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Hashtable | The handlers. |
HighPriorityHandlers
Gets the high priority handlers.
Declaration
protected Hashtable HighPriorityHandlers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Hashtable | The high priority handlers. |
Methods
AddHandler(EventKey, Delegate)
Adds the handler.
Declaration
protected void AddHandler(EventKey key, Delegate dNewHandler)
Parameters
Type | Name | Description |
---|---|---|
EventKey | key | The key. |
System.Delegate | dNewHandler | The delegate. |
RaiseCancelCollectionChangedEvent(CollectionExEventArgs)
Raises the cancel collection changed event.
Declaration
public virtual void RaiseCancelCollectionChangedEvent(CollectionExEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
CollectionExEventArgs | evtArgs | The CollectionExEventArgs instance containing the event data. |
RaiseNodesChangedEvent(CollectionExEventArgs)
Raises the nodes changed event.
Declaration
public virtual void RaiseNodesChangedEvent(CollectionExEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
CollectionExEventArgs | evtArgs | The CollectionExEventArgs instance containing the event data. |
RaiseNodesChangingEvent(CollectionExEventArgs)
Raises the nodes changing event.
Declaration
public virtual 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. |
RaisePropertyChangedEvent(IPropertyContainer, String)
Raises the property changed event.
Declaration
public void RaisePropertyChangedEvent(IPropertyContainer nodeAffected, string strPropertyName)
Parameters
Type | Name | Description |
---|---|---|
IPropertyContainer | nodeAffected | The node affected. |
System.String | strPropertyName | Name of the property. |
RaisePropertyChangingEvent(IPropertyContainer, String, Object)
Raises the property changing event.
Declaration
public bool RaisePropertyChangingEvent(IPropertyContainer propertyContainer, string strPropertyName, object newValue)
Parameters
Type | Name | Description |
---|---|---|
IPropertyContainer | propertyContainer | The property container. |
System.String | strPropertyName | Name of the property. |
System.Object | newValue | The new value. |
Returns
Type | Description |
---|---|
System.Boolean | true, raise property changing event. |
RemoveHandler(EventKey, Delegate)
Removes the handler.
Declaration
protected void RemoveHandler(EventKey key, Delegate dHandler)
Parameters
Type | Name | Description |
---|---|---|
EventKey | key | The key. |
System.Delegate | dHandler | The delegate. |
Events
CancelCollectionChanged
Occurs when cancel the eventsink.
Declaration
public virtual event CancelCollectionChangedEventHandler CancelCollectionChanged
Event Type
Type |
---|
CancelCollectionChangedEventHandler |
NodeCollectionChanged
Occurs when node collection changed.
Declaration
public virtual event CollectionExEventHandler NodeCollectionChanged
Event Type
Type |
---|
CollectionExEventHandler |
NodeCollectionChanging
Occurs when node collection changing.
Declaration
public virtual event CollectionExEventHandler NodeCollectionChanging
Event Type
Type |
---|
CollectionExEventHandler |
PropertyChanged
Occurs when property changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
PropertyChangedEventHandler |
PropertyChanging
Occurs when property changing.
Declaration
public event PropertyChangingEventHandler PropertyChanging
Event Type
Type |
---|
PropertyChangingEventHandler |