初始化 DiagramPaintEventArgs 类的新实例。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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
用于绘制的 Graphics 对象。
- clipRectangle
类型:System.Drawing.Rectangle
在设备单元中的剪辑区域
- diagramClientView
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
图形对象属于的视图。如果 Graphics 对象不属于一个,则此属性可能为 null。
- paintChildShapes
类型:System.Boolean
指示是否应绘制子形状的值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。