LinkDecorator.DoPaintShape Method
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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaración
Public Overridable Sub DoPaintShape ( _
bounds As RectangleD, _
shape As IGeometryHost, _
e As DiagramPaintEventArgs _
)
public virtual void DoPaintShape(
RectangleD bounds,
IGeometryHost shape,
DiagramPaintEventArgs e
)
public:
virtual void DoPaintShape(
RectangleD bounds,
IGeometryHost^ shape,
DiagramPaintEventArgs^ e
)
abstract DoPaintShape :
bounds:RectangleD *
shape:IGeometryHost *
e:DiagramPaintEventArgs -> unit
override DoPaintShape :
bounds:RectangleD *
shape:IGeometryHost *
e:DiagramPaintEventArgs -> unit
public function DoPaintShape(
bounds : RectangleD,
shape : IGeometryHost,
e : DiagramPaintEventArgs
)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.