LinkDecorator.DoPaintShape Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
DiagramPaintEventArgs used get he Graphics object for drawing.