NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UITypeEditor.PaintValue (ITypeDescriptorContext, Object, Graphics, Rectangle)

Paints a representative value of the given object to the provided canvas. Painting should be done within the boundaries of the provided rectangle.

[Visual Basic]
Overloads Overridable Public Sub PaintValue( _
   ByVal context As ITypeDescriptorContext, _
   ByVal value As Object, _
   ByVal canvas As Graphics, _
   ByVal rectangle As Rectangle _
)
[C#]
public virtual void PaintValue(
   ITypeDescriptorContext context,
   object value,
   Graphics canvas,
   Rectangle rectangle
);
[C++]
public: virtual void PaintValue(
   ITypeDescriptorContext* context,
   Object* value,
   Graphics* canvas,
   Rectangle rectangle
);
[JScript]
public function PaintValue(
   context : ITypeDescriptorContext,
   value : Object,
   canvas : Graphics,
   rectangle : Rectangle
);

Parameters

context
A type descriptor context that can be used to provide additional context information.
value
An instance of the value being edited.
canvas
A drawing canvas to paint the value's representation on.
rectangle
The size to make the painted value.

See Also

UITypeEditor Class | UITypeEditor Members | System.Drawing.Design Namespace | UITypeEditor.PaintValue Overload List