Language

DesignerGlyph.OnPaint メソッド

定義

派生クラスでオーバーライドされると、アクティビティ デザイナー画面にグリフをレンダリングするために必要なすべてのタスクを実行します。

protected:
 abstract void OnPaint(System::Drawing::Graphics ^ graphics, bool activated, System::Workflow::ComponentModel::Design::AmbientTheme ^ ambientTheme, System::Workflow::ComponentModel::Design::ActivityDesigner ^ designer);
protected abstract void OnPaint(System.Drawing.Graphics graphics, bool activated, System.Workflow.ComponentModel.Design.AmbientTheme ambientTheme, System.Workflow.ComponentModel.Design.ActivityDesigner designer);
abstract member OnPaint : System.Drawing.Graphics * bool * System.Workflow.ComponentModel.Design.AmbientTheme * System.Workflow.ComponentModel.Design.ActivityDesigner -> unit
Protected MustOverride 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 では、 CommentIndicatorPen を使用してコメント グリフの境界を描画し、それを埋めるために CommentIndicatorBrush します。

適用対象