Upravit

Sdílet prostřednictvím


GeneralTransform2DTo3D.TryTransform(Point, Point3D) Method

Definition

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

Parameters

inPoint
Point

The point to transform.

result
Point3D

The result of transforming inPoint.

Returns

true if inPoint was transformed; otherwise, false.

Remarks

Unlike the Transform method, this method does not throw an exception if the transformation is unsuccessful.

TryTransform is introduced in the .NET Framework version 3.5. For more information, see Versions and Dependencies.

Applies to