SequentialWorkflowRootDesigner.OnPaint(ActivityDesignerPaintEventArgs) 方法

定义

绘制与 SequentialWorkflowRootDesigner 关联的任何页眉和页脚。Draws any headers and footers associated with the SequentialWorkflowRootDesigner.

protected:
 override void OnPaint(System::Workflow::ComponentModel::Design::ActivityDesignerPaintEventArgs ^ e);
protected override void OnPaint (System.Workflow.ComponentModel.Design.ActivityDesignerPaintEventArgs e);
override this.OnPaint : System.Workflow.ComponentModel.Design.ActivityDesignerPaintEventArgs -> unit
Protected Overrides Sub OnPaint (e As ActivityDesignerPaintEventArgs)

参数

e
ActivityDesignerPaintEventArgs

包含事件数据的 ActivityDesignerPaintEventArgsThe ActivityDesignerPaintEventArgs that contains the event data.

例外

e 包含空引用(在 Visual Basic 中为 Nothing)。e contains a null reference (Nothing in Visual Basic).

注解

OnPaint 使用适当的主题设置来绘制要在页眉和页脚中包含的任何文本。OnPaint draws any text to include in the headers and footers with the appropriate theme settings. 此外,它还绘制要在页眉和页脚中包含的任何图像。It also draws any images to include in the headers and footers.

注意 当在 OnPaint 派生类中重写时,请确保调用 OnPaint 基类的方法,以便注册的委托接收事件。Note When you override OnPaint in a derived class, be sure to call the OnPaint method of the base class so that registered delegates receive the event.

适用于