ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType Type
return object
コード例 #1
0
ファイル: GLine.cs プロジェクト: prosardar/BAD
 public GLine(Point aPoint1, Point aPoint2)
 {
     PointConverter aPointConverter = new PointConverter();
     FPoint1 = (PointF)aPointConverter.ConvertTo(aPoint1, typeof(PointF));
     FPoint2 = (PointF)aPointConverter.ConvertTo(aPoint2, typeof(PointF));
 }