Partager via


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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Protected Overridable Sub OnBeforePaint
protected virtual void OnBeforePaint()
protected:
virtual void OnBeforePaint()
abstract OnBeforePaint : unit -> unit  
override OnBeforePaint : unit -> unit
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

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace