LinkDecorator.DoPaintShape Method

Definition

Paints the LinkDecorator on a LinkShape based on the bounds that it's given. The default drawing code gets the Path for the decorator and draws and fills it based on the LinkDecorator's PenId and BrushId.

C++
public:
 virtual void DoPaintShape(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD bounds, Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::DiagramPaintEventArgs ^ e);

Parameters

bounds
RectangleD

Rectangle in which to draw the decorator.

shape
IGeometryHost

LinkShape that this decorator is associated with.

e
DiagramPaintEventArgs

DiagramPaintEventArgs used get he Graphics object for drawing.

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022