共用方式為


Diagram.DiagramAdded Event

Occurs when a diagram is added.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public Event DiagramAdded As EventHandler(Of ElementAddedEventArgs)
public event EventHandler<ElementAddedEventArgs> DiagramAdded
public:
 event EventHandler<ElementAddedEventArgs^>^ DiagramAdded {
    void add (EventHandler<ElementAddedEventArgs^>^ value);
    void remove (EventHandler<ElementAddedEventArgs^>^ value);
}
member DiagramAdded : IEvent<EventHandler<ElementAddedEventArgs>,
    ElementAddedEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace