C# Class LayoutControls.UserSettings.LabelUserSettingsTypeConverter

Converts a LabelUserSettings object to and from a String.
One of the properties of GeneralUserSettings is of type . The application settings architecture requires a type converter for such a complex type.
Inheritance: System.ComponentModel.TypeConverter
Datei anzeigen Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : System.Boolean
CanConvertTo ( ITypeDescriptorContext context, Type sourceType ) : System.Boolean
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, Object value ) : Object
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType ) : Object
LabelUserSettingsTypeConverter ( ) : System

Initializes a new instance of the LabelUserSettingsTypeConverter class.

Private Methods

Method Description
AssertValid ( ) : void

Method Details

CanConvertFrom() public method

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : System.Boolean
context ITypeDescriptorContext
sourceType System.Type
return System.Boolean

CanConvertTo() public method

public CanConvertTo ( ITypeDescriptorContext context, Type sourceType ) : System.Boolean
context ITypeDescriptorContext
sourceType System.Type
return System.Boolean

ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, Object value ) : Object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value Object
return Object

ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType ) : Object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value Object
destinationType System.Type
return Object

LabelUserSettingsTypeConverter() public method

Initializes a new instance of the LabelUserSettingsTypeConverter class.
public LabelUserSettingsTypeConverter ( ) : System
return System