Skip to Content
.NET Windows Forms in a Nutshell
book

.NET Windows Forms in a Nutshell

by Ian Griffiths, Matthew Adams
March 2003
Intermediate to advanced
896 pages
32h 35m
English
O'Reilly Media, Inc.
Content preview from .NET Windows Forms in a Nutshell

Name

ImageConverter

Synopsis

This class, derived from System.ComponentModel.TypeConverter, is used to transform Image classes to and from other types, specifically strings, and byte arrays in persistence and design-time scenarios.


public class ImageConverter : System.ComponentModel.TypeConverter {

// Public Constructors

   public ImageConverter();

// 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 PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, 

        object value, Attribute[ ] attributes);

 // overrides System.ComponentModel.TypeConverter

   public override bool GetPropertiesSupported( 

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

}

Hierarchy

System.Object System.ComponentModel.TypeConverter ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse

Publisher Resources

ISBN: 0596003382Supplemental ContentCatalog PageErrata