ShapeElement.OnBeforePaint Method

Definition

OnBeforePaint is called at the start of the ShapeElement's painting. It provides an opportunity for developers to update and override resources before they're used in painting.

C++
protected:
 virtual void OnBeforePaint();

Remarks

You can override existing resources by calling StyleSet.OverrideXXX and changing the specific setting that you would like.

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022