GeneralTransform2DTo3D.TryTransform(Point, Point3D) 方法

定义

尝试变换指定的点,并返回指示变换是否成功的值。Attempts to transform the specified point and returns a value that indicates whether the transformation was successful.

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

要转换的点。The point to transform.

result
Point3D

变换 inPoint 的结果。The result of transforming inPoint.

返回

Boolean

如果 inPoint 已变换,则为 true;否则为 falsetrue if inPoint was transformed; otherwise, false.

注解

Transform 方法不同,如果转换不成功,则此方法不会引发异常。Unlike the Transform method, this method does not throw an exception if the transformation is unsuccessful.

TryTransform .NET Framework 版本3.5 中引入。TryTransform is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系For more information, see Versions and Dependencies.

适用于