Alerts listeners that the shape has been initialized.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overridable Sub OnInitialize
'使用
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.
Examples
public override void OnInitialize()
{
base.OnInitialize();
NullBlock.Initialize(this.Store);
anchorKeyPointAction = new AnchorKeyPointAction(this);
}
Permissions
- 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.