Edit

Share via


DesignerGlyph.OnPaint Method

Definition

When overridden in a derived class, performs any tasks required to render the glyph on the activity designer surface.

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)

Parameters

graphics
Graphics

The Graphics to perform fill and drawing tasks.

activated
Boolean

true to indicate that the glyph appears on the design surface; otherwise, false.

ambientTheme
AmbientTheme

The AmbientTheme to use to access ambient property settings.

designer
ActivityDesigner

The ActivityDesigner from which to obtain information about user actions.

Remarks

OnPaint uses CommentIndicatorPen to draw the bounds of the comment glyph and CommentIndicatorBrush to fill it.

Applies to