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!

IDesignerEventService ActiveDocumentChanged Event

Occurs when the currently active document changes.

The following declaration shows the syntax for a method that handles the ActiveDocumentChanged event.

[Visual Basic]
Private Sub IDesignerEventServiceName_ActiveDocumentChanged( _
   ByVal sender As Object, _
   ByVal e As ActiveDocumentEventArgs _
)
[C#]
private void IDesignerEventServiceName_ActiveDocumentChanged(
   object sender,
   ActiveDocumentEventArgs e
);
[C++]
private: void IDesignerEventServiceName_ActiveDocumentChanged(
   Object* sender,
   ActiveDocumentEventArgs* e
);
[JScript]
private IDesignerEventServiceName_ActiveDocumentChanged(
   sender : Object,
   e : ActiveDocumentEventArgs
);

Parameters

sender
The source of the event.
e
An ActiveDocumentEventArgs that contains the event data. The following ActiveDocumentEventArgs properties provide information specific to this event.
Property Description
NewDocument
Gets or sets the document that is gaining activation.
OldDocument
Gets or sets the document that is losing activation.

Remarks

This can result from the user opening or setting focus to a new document, or by closing a document.

See Also

IDesignerEventService Interface | IDesignerEventService MembersTopic | System.ComponentModel.Design Namespace