Name

RectangleConverter

Synopsis

This class, derived from System.ComponentModel.TypeConverter, converts between Rectangle values and other types, specifically strings, in persistence and design-time scenarios.


public class RectangleConverter : System.ComponentModel.TypeConverter {

// Public Constructors

   public RectangleConverter();

// Public Instance Methods

   public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, 

        Type sourceType);  // overrides System.ComponentModel.TypeConverter

   public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, 

        Type destinationType);  // overrides System.ComponentModel.TypeConverter

   public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, 

        System.Globalization.CultureInfo culture, object value);  // overrides System.ComponentModel.TypeConverter

   public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, 

        System.Globalization.CultureInfo culture, object value, 

        Type destinationType);  // overrides System.ComponentModel.TypeConverter

   public override object CreateInstance(System.ComponentModel.ITypeDescriptorContext context, 

        System.Collections.IDictionary propertyValues);  // overrides System.ComponentModel.TypeConverter

   public override bool GetCreateInstanceSupported(

        System.ComponentModel.ITypeDescriptorContext context);  // overrides System.ComponentModel.TypeConverter

   public override PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext ...

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.