SelectionGlyph.OnPaint 方法

定义

执行在活动设计器图面上呈现标志符号时所需的任何任务。

protected:
 override void OnPaint(System::Drawing::Graphics ^ graphics, bool activated, System::Workflow::ComponentModel::Design::AmbientTheme ^ ambientTheme, System::Workflow::ComponentModel::Design::ActivityDesigner ^ designer);
protected override void OnPaint (System.Drawing.Graphics graphics, bool activated, System.Workflow.ComponentModel.Design.AmbientTheme ambientTheme, System.Workflow.ComponentModel.Design.ActivityDesigner designer);
override this.OnPaint : System.Drawing.Graphics * bool * System.Workflow.ComponentModel.Design.AmbientTheme * System.Workflow.ComponentModel.Design.ActivityDesigner -> unit
Protected Overrides Sub OnPaint (graphics As Graphics, activated As Boolean, ambientTheme As AmbientTheme, designer As ActivityDesigner)

参数

graphics
Graphics

用于执行填充和绘制任务的 Graphics

activated
Boolean

true 则指示在设计图面上显示标志符号;否则为 false

ambientTheme
AmbientTheme

要用于访问环境属性设置的 AmbientTheme

designer
ActivityDesigner

从中获取有关用户操作的信息的 ActivityDesigner

注解

OnPaint 绘制用户选择的标志符号的所有元素,其中包括标志符号抓取手柄。

适用于