ShapeElement.OnBeforePaint Method

Updates resources, such as pens and brushes, before they are used to paint the shape.

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

Syntax

'宣言
Protected Overridable Sub OnBeforePaint
'使用

Me.OnBeforePaint()
protected virtual void OnBeforePaint()
protected:
virtual void OnBeforePaint()
protected function OnBeforePaint()

Remarks

You can override resources with the StyleSet class.

Permissions

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace