LinkDecorator::DoPaintShape Method (RectangleD, IGeometryHost^, DiagramPaintEventArgs^)

 

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.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual void DoPaintShape(
	RectangleD bounds,
	IGeometryHost^ shape,
	DiagramPaintEventArgs^ e
)

Parameters

bounds
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleD

Rectangle in which to draw the decorator.

shape
Type: Microsoft.VisualStudio.Modeling.Diagrams::IGeometryHost^

LinkShape that this decorator is associated with.

e
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramPaintEventArgs^

DiagramPaintEventArgs used get he Graphics object for drawing.

Return to top
Show: