GeometryConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) GeometryConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) GeometryConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) GeometryConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

定義

指定した Geometry を指定した型に変換します。Converts the specified Geometry to the specified type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

パラメーター

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

変換に必要なコンテキスト情報。Context information required for conversion.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

変換時に尊重するカルチャ情報。Cultural information respected during conversion.

value
Object Object Object Object

変換対象の GeometryThe Geometry to convert.

destinationType
Type Type Type Type

Geometry を変換した後の型。The type to convert the Geometry to.

戻り値

この Geometry の変換によって作成されたオブジェクト。The object created from converting this Geometry.

例外

valuenull であるか、Geometry ではない場合、または destinationTypeGeometry に変換できない場合にスローされます。Thrown if value is null or is not a Geometry, or if the destinationType cannot be converted into a Geometry.

適用対象