初始化 DiagramPaintEventArgs 类的新实例。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
语法
声明
Public Sub New ( _
graphics As Graphics, _
clipRectangle As Rectangle, _
diagramClientView As DiagramClientView, _
paintChildShapes As Boolean _
)
public DiagramPaintEventArgs(
Graphics graphics,
Rectangle clipRectangle,
DiagramClientView diagramClientView,
bool paintChildShapes
)
参数
- graphics
类型:System.Drawing.Graphics
使用的图形对象投影到要绘制的区域。
- clipRectangle
类型:System.Drawing.Rectangle
在组件单位的剪辑区域
- diagramClientView
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
视图图形对象属于。,如果图形对象不属于一个,则可能为 null。
- paintChildShapes
类型:System.Boolean
一个值应绘制子形状。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。