System.Drawing.Design.UITypeEditor.PaintValue Method

Paints a representation of the value of the specified object to the specified canvas.

Syntax

public void PaintValue (object value, System.Drawing.Graphics canvas, System.Drawing.Rectangle rectangle)

Parameters

value
The object whose value this type editor will display.
canvas
A drawing canvas on which to paint the representation of the object's value.
rectangle
A System.Drawing.Rectangle within whose boundaries to paint the value.

Remarks

Editors should paint within the boundaries of the specified rectangle. This rectangle indicates the area of the Properties window to draw a representation of the value within.

Requirements

Namespace: System.Drawing.Design
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0