点击或拖拽改变大小

ColorConverterConvertTo 方法 (ITypeDescriptorContext, CultureInfo, Object, Type)

TypeConverter method implementation.

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public override Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)

参数

context
类型:System.ComponentModelITypeDescriptorContext
ITypeDescriptorContext
culture
类型:System.GlobalizationCultureInfo
current culture (see CLR specs)
value
类型:SystemObject
value to convert from
destinationType
类型:SystemType
Type to convert to

返回值

类型:Object
converted value
异常
异常条件
NotSupportedException An NotSupportedException is thrown if the example object is null or is not a Color, or if the destinationType isn't one of the valid destination types.
参见