Transform.TryTransform(Point, Point) 方法

定义

尝试变换指定的点,并返回指示变换是否成功的值。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

参数

inPoint
Point

要转换的点。The point to transform.

result
Point

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

返回

如果 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.

适用于