ColorConverter

ColorConverter

System.Drawing (system.drawing.dll) class

This subclass of TypeConverter is used to transform Color objects to other types. Specifically, it can convert to and from a string representation used in persistence and design-time scenarios. Normally, you would use Color.ToString() and Color. Name to do this conversion yourself.

 public class  ColorConverter  : System.ComponentModel.TypeConverter {  // Public Constructors  public  ColorConverter  ();  // 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 StandardValuesCollection  GetStandardValues  (          System.ComponentModel.ITypeDescriptorContext  context  );  // overrides System.ComponentModel.TypeConverter  public override bool  GetStandardValuesSupported  (         System.ComponentModel.ITypeDescriptorContext  context  );  // overrides System.ComponentModel.TypeConverter  } 

Hierarchy

System.Object System.ComponentModel.TypeConverter ColorConverter



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net