Class MessageInColorConverter
Although its scope is public, the only practical use for this class is
to facilitate storage of default or user specified MessageInColor values
in application settings files.
Inheritance
System.Object
System.ComponentModel.TypeConverter
MessageInColorConverter
Inherited Members
System.ComponentModel.TypeConverter.CanConvertFrom(System.Type)
System.ComponentModel.TypeConverter.CanConvertTo(System.Type)
System.ComponentModel.TypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Type)
System.ComponentModel.TypeConverter.ConvertFrom(System.Object)
System.ComponentModel.TypeConverter.ConvertFromInvariantString(System.String)
System.ComponentModel.TypeConverter.ConvertFromInvariantString(System.ComponentModel.ITypeDescriptorContext, System.String)
System.ComponentModel.TypeConverter.ConvertFromString(System.String)
System.ComponentModel.TypeConverter.ConvertFromString(System.ComponentModel.ITypeDescriptorContext, System.String)
System.ComponentModel.TypeConverter.ConvertFromString(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.String)
System.ComponentModel.TypeConverter.ConvertTo(System.Object, System.Type)
System.ComponentModel.TypeConverter.ConvertToInvariantString(System.Object)
System.ComponentModel.TypeConverter.ConvertToInvariantString(System.ComponentModel.ITypeDescriptorContext, System.Object)
System.ComponentModel.TypeConverter.ConvertToString(System.Object)
System.ComponentModel.TypeConverter.ConvertToString(System.ComponentModel.ITypeDescriptorContext, System.Object)
System.ComponentModel.TypeConverter.ConvertToString(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
System.ComponentModel.TypeConverter.CreateInstance(System.Collections.IDictionary)
System.ComponentModel.TypeConverter.CreateInstance(System.ComponentModel.ITypeDescriptorContext, System.Collections.IDictionary)
System.ComponentModel.TypeConverter.GetConvertFromException(System.Object)
System.ComponentModel.TypeConverter.GetConvertToException(System.Object, System.Type)
System.ComponentModel.TypeConverter.GetCreateInstanceSupported()
System.ComponentModel.TypeConverter.GetCreateInstanceSupported(System.ComponentModel.ITypeDescriptorContext)
System.ComponentModel.TypeConverter.GetProperties(System.Object)
System.ComponentModel.TypeConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext, System.Object)
System.ComponentModel.TypeConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext, System.Object, System.Attribute[])
System.ComponentModel.TypeConverter.GetPropertiesSupported()
System.ComponentModel.TypeConverter.GetPropertiesSupported(System.ComponentModel.ITypeDescriptorContext)
System.ComponentModel.TypeConverter.GetStandardValues()
System.ComponentModel.TypeConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)
System.ComponentModel.TypeConverter.GetStandardValuesExclusive()
System.ComponentModel.TypeConverter.GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext)
System.ComponentModel.TypeConverter.GetStandardValuesSupported()
System.ComponentModel.TypeConverter.GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext)
System.ComponentModel.TypeConverter.IsValid(System.Object)
System.ComponentModel.TypeConverter.IsValid(System.ComponentModel.ITypeDescriptorContext, System.Object)
System.ComponentModel.TypeConverter.SortProperties(System.ComponentModel.PropertyDescriptorCollection, System.String[])
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: WizardWrx.ConsoleStreams.dll
Syntax
public class MessageInColorConverter : TypeConverter
Methods
|
Improve this Doc
View Source
CanConvertFrom(ITypeDescriptorContext, Type)
Return True if inputs of the specified type can be converted.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext pIContext, Type ptypSourceType)
Parameters
| Type |
Name |
Description |
| System.ComponentModel.ITypeDescriptorContext |
pIContext |
This argument provides internal details about the type. Treat it as
a black box.
|
| System.Type |
ptypSourceType |
This argument specifies the System.Type to be evaluated.
|
Returns
| Type |
Description |
| System.Boolean |
This method returns TRUE if ptypSourceType is typeof ( string ). Any
other type returns FALSE.
|
Overrides
System.ComponentModel.TypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Type)
|
Improve this Doc
View Source
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Convert from string (the only supported source type) to
MessageInColor.
Declaration
public override object ConvertFrom(ITypeDescriptorContext pIContext, CultureInfo pCulture, object pobjValue)
Parameters
| Type |
Name |
Description |
| System.ComponentModel.ITypeDescriptorContext |
pIContext |
This argument provides internal details about the type. Treat it as
a black box.
|
| System.Globalization.CultureInfo |
pCulture |
This argument supplies a reference to the current CultureInfo object
that drives many aspects of text and numeric conversions.
|
| System.Object |
pobjValue |
Specify the source object to be converted. Although the method
signature requires this argument to be cast to Object, the only type
supported is System.string.
|
Returns
| Type |
Description |
| System.Object |
Although specified as object to meet the requirements of the base
class, the actual return value is expected to be a MessageInColors
object.
|
Overrides
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
|
Improve this Doc
View Source
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Given a MessageInColors object, return a string representation that
is suitable for storage in a standard application settings file.
Declaration
public override object ConvertTo(ITypeDescriptorContext pIContext, CultureInfo pCulture, object pobjValue, Type pDestType)
Parameters
| Type |
Name |
Description |
| System.ComponentModel.ITypeDescriptorContext |
pIContext |
This argument provides internal details about the type. Treat it as
a black box.
|
| System.Globalization.CultureInfo |
pCulture |
This argument supplies a reference to the current CultureInfo object
that drives many aspects of text and numeric conversions.
|
| System.Object |
pobjValue |
Although the method signature calls for an generic System.Object,
this argument must actually be a MessageInColors object.
|
| System.Type |
pDestType |
The only valid value for this argument is typeof ( string ). The
specification type is dictated by the signature of the ConvertTo
method in the base class.
|
Returns
| Type |
Description |
| System.Object |
Although specified as object to meet the requirements of the base
class, the actual return value is expected to be a System.string.
|
Overrides
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object, System.Type)