LockedActivityGlyph.OnPaint(Graphics, Boolean, AmbientTheme, ActivityDesigner) 方法

定義

執行任何轉譯活動設計工具介面上圖像時所需的工作。Performs any tasks required to render the glyph on the activity designer surface.

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

參數

graphics
Graphics

Graphics,可執行填滿與繪製工作。The Graphics to perform fill and drawing tasks.

activated
Boolean

true,表示圖像顯示在設計介面上,否則為 falsetrue to indicate that the glyph appears on the design surface; otherwise, false.

ambientTheme
AmbientTheme

用於存取環境屬性 (Ambient Property) 設定的 AmbientThemeThe AmbientTheme to use to access ambient property settings.

designer
ActivityDesigner

要從中取得關於使用者動作之資訊的 ActivityDesignerThe ActivityDesigner from which to obtain information about user actions.

適用於