点击或拖拽改变大小

ColorConverterConvertFrom 方法 (ITypeDescriptorContext, CultureInfo, Object)

ConvertFrom - attempt to convert to a Color from the given object

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public override Object ConvertFrom(
	ITypeDescriptorContext td,
	CultureInfo ci,
	Object value
)

参数

td
类型:System.ComponentModelITypeDescriptorContext

[缺少 "M:CPF.Drawing.ColorConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)" 的 <param name="td"/> 文档]

ci
类型:System.GlobalizationCultureInfo

[缺少 "M:CPF.Drawing.ColorConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)" 的 <param name="ci"/> 文档]

value
类型:SystemObject

[缺少 "M:CPF.Drawing.ColorConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)" 的 <param name="value"/> 文档]

返回值

类型:Object

[缺少 "M:CPF.Drawing.ColorConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)" 的 <returns> 文档]

异常
异常条件
NotSupportedException A NotSupportedException is thrown if the example object is null or is not a valid type which can be converted to a Color.
参见