This documentation is archived and is not being maintained.

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.diagrams.dll)

protected virtual void OnBeforePaint ()
protected void OnBeforePaint ()
protected function OnBeforePaint ()

You can override resources with the StyleSet class.

Show: