绘制 LinkDecorator 至给定基于边界的 LinkShape 上。 默认绘图代码获取修饰器的路径并基于 LinkDecorator 的 PenId 和 BrushId 对其进行绘制和填充。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Overridable Sub DoPaintShape ( _
bounds As RectangleD, _
shape As IGeometryHost, _
e As DiagramPaintEventArgs _
)
public virtual void DoPaintShape(
RectangleD bounds,
IGeometryHost shape,
DiagramPaintEventArgs e
)
参数
- bounds
类型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
在其中绘制修饰器的矩形。
- shape
类型:Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost
LinkShape 与此修饰器关联。
- e
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramPaintEventArgs
用于获取绘制图形目标的 DiagramPaintEventArgs。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。