This documentation is archived and is not being maintained.

UITypeEditor.PaintValue Method (Object, Graphics, Rectangle)

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

Namespace:  System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

public void PaintValue(
	Object value,
	Graphics canvas,
	Rectangle rectangle


Type: System.Object

The object whose value this type editor will display.

Type: System.Drawing.Graphics

A drawing canvas on which to paint the representation of the object's value.

Type: System.Drawing.Rectangle

A Rectangle within whose boundaries to paint the value.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0