Transform.TryTransform(Point, Point) Method

Definition

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

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

Parameters

inPoint
Point

要转换的点。The point to transform.

result
Point

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

Returns

Boolean

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

Remarks

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

Applies to