NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComponentModelPersister.NavigateToEvent (IComponent, EventDescriptor, Int32, String)

Navigates the text editor to the specified event handler. If no event handler is found, a new method should be created.

[Visual Basic]
Overloads Overridable Public Function NavigateToEvent( _
   ByVal component As IComponent, _
   ByVal evevent As EventDescriptor, _
   ByVal modifiers As Integer, _
   ByVal name As String _
) As String
[C#]
public virtual string NavigateToEvent(
   IComponent component,
   EventDescriptor evevent,
   int modifiers,
   string name
);
[C++]
public: virtual String* NavigateToEvent(
   IComponent* component,
   EventDescriptor* evevent,
   int modifiers,
   String* name
);
[JScript]
public function NavigateToEvent(
   component : IComponent,
   evevent : EventDescriptor,
   modifiers : int,
   name : String
) : String;

Parameters

component
Component the event will be fired from
evevent
Event information to match
modifiers
to apply to handler
name
to of handler to create/find.

Return Value

the name of the event method that was created, or null if an existing method was found

See Also

ComponentModelPersister Class | ComponentModelPersister Members | System.ComponentModel.Design Namespace | ComponentModelPersister.NavigateToEvent Overload List | ICodeNavigatorService