C# Class ZForge.Controls.ExplorerBar.HeaderInfoConverter

A custom TypeConverter used to help convert HeaderInfos from one Type to another
Inheritance: System.ComponentModel.ExpandableObjectConverter
Show file Open project: zhuangyy/Motion

Public Methods

Method Description
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object

Converts the given value object to the specified type, using the specified context and culture information

GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection

Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes

Method Details

ConvertTo() public method

Converts the given value object to the specified type, using the specified context and culture information
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext An ITypeDescriptorContext that provides /// a format context
culture System.Globalization.CultureInfo A CultureInfo object. If a null reference /// is passed, the current culture is assumed
value object The Object to convert
destinationType System.Type The Type to convert the value /// parameter to
return object

GetProperties() public method

Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes
public GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format /// context
value object An Object that specifies the type of array for /// which to get properties
attributes System.Attribute An array of type Attribute that is used as /// a filter
return System.ComponentModel.PropertyDescriptorCollection