ActivityDesignerPaintEventArgs 类

定义

警告

此 API 现已过时。

对于 OnPaint(ActivityDesignerPaintEventArgs)OnPaint(ActivityDesignerPaintEventArgs, Boolean)OnPaint(ActivityDesignerPaintEventArgs)OnPaint(Graphics, Boolean, AmbientTheme, ActivityDesigner) 方法以及从这些方法派生的类中的任何 OnPaint 重写版本,当在工作流设计图面上绘制这些对象时,将为它们提供数据。Provides data for the OnPaint(ActivityDesignerPaintEventArgs), OnPaint(ActivityDesignerPaintEventArgs, Boolean), OnPaint(ActivityDesignerPaintEventArgs), and OnPaint(Graphics, Boolean, AmbientTheme, ActivityDesigner) methods and any overridden versions of OnPaint in classes that derive from them, when they are drawn on a workflow design surface.

public ref class ActivityDesignerPaintEventArgs : EventArgs
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityDesignerPaintEventArgs : EventArgs
type ActivityDesignerPaintEventArgs = class
    inherit EventArgs
Public Class ActivityDesignerPaintEventArgs
Inherits EventArgs
继承
ActivityDesignerPaintEventArgs
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

OnPaint当在工作流设计图面上重绘活动设计器、标志符号或连接器时, 将发生方法调用。OnPaint method calls occur when an activity designer, glyph, or connector is redrawn on a workflow design surface. ActivityDesignerPaintEventArgs 指定用于绘制对象的图形以及在其中绘制对象的剪辑矩形。ActivityDesignerPaintEventArgs specifies the graphics to use to draw the object and the clipping rectangle in which to draw it.

构造函数

ActivityDesignerPaintEventArgs(Graphics, Rectangle, Rectangle, ActivityDesignerTheme)

用指定的图形、剪辑矩形、视区和设计器主题来初始化 ActivityDesignerPaintEventArgs 类的新实例。Initializes a new instance of the ActivityDesignerPaintEventArgs class with the specified graphics, clipping rectangle, viewport and designer theme.

属性

AmbientTheme

获取与工作流设计图面关联的 AmbientThemeGets the AmbientTheme associated with the workflow design surface.

ClipRectangle

获取要在其中进行绘制的 RectangleGets the Rectangle in which to draw.

DesignerTheme

获取与设计器关联的 ActivityDesignerThemeGets the ActivityDesignerTheme associated with the designer.

Graphics

获取用于在工作流设计图面上绘制项的 GraphicsGets the Graphics used to draw the item on the workflow design surface.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于