語言

GeneralTransform2DTo3D.TryTransform(Point, Point3D) 方法

定義

嘗試轉換指定點,並回傳一個表示轉換是否成功的值。

public:
 bool TryTransform(System::Windows::Point inPoint, [Runtime::InteropServices::Out] System::Windows::Media::Media3D::Point3D % result);
public bool TryTransform(System.Windows.Point inPoint, out System.Windows.Media.Media3D.Point3D result);
member this.TryTransform : System.Windows.Point * Point3D -> bool
Public Function TryTransform (inPoint As Point, ByRef result As Point3D) As Boolean

參數

inPoint
Point

轉化的時刻。

result
Point3D

轉換 inPoint的結果。

傳回

true 若 inPoint 變換;否則, false。

備註

與方法 Transform 不同,此方法若轉換失敗不會拋出例外。

TryTransform 於 .NET Framework 3.5 版本中引入。 欲了解更多資訊,請參閱 版本與相依關係。

適用於