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
'Declaration
Protected Overridable Sub OnBeforePaint
'Usage
Me.OnBeforePaint()
protected virtual void OnBeforePaint()
protected:
virtual void OnBeforePaint()
protected function OnBeforePaint()
Remarks
You can override existing resources by calling StyleSet.OverrideXXX and changing the specific setting that you would like.
.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.