Condividi tramite


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.

public:
 virtual void DoPaintShape(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD bounds, Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::DiagramPaintEventArgs ^ e);
public virtual void DoPaintShape (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD bounds, Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost shape, Microsoft.VisualStudio.Modeling.Diagrams.DiagramPaintEventArgs e);
abstract member DoPaintShape : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost * Microsoft.VisualStudio.Modeling.Diagrams.DiagramPaintEventArgs -> unit
override this.DoPaintShape : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost * Microsoft.VisualStudio.Modeling.Diagrams.DiagramPaintEventArgs -> unit
Public Overridable Sub DoPaintShape (bounds As RectangleD, shape As IGeometryHost, e As DiagramPaintEventArgs)

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