ShapeElement.OnInitialize Method
Called to initialize the shape. Override this to attach event handlers and rules to this object.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'Declaration
Public Overridable Sub OnInitialize
'Usage
Dim instance As ShapeElement
instance.OnInitialize()
public virtual void OnInitialize()
public:
virtual void OnInitialize()
public function OnInitialize()
Remarks
This method is called in a transaction.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.