Share via


IPointerPointTransform.TransformBounds(Rect) Method

Definition

Transforms the specified bounding rectangle.

public:
 Rect TransformBounds(Rect rect);
Rect TransformBounds(Rect const& rect);
public Rect TransformBounds(Rect rect);
function transformBounds(rect)
Public Function TransformBounds (rect As Rect) As Rect

Parameters

rect
Rect

The bounding rectangle to transform.

Returns

The smallest, axis-aligned bounding box that encloses rect after the transformation. (An axis-aligned bounding box is one which has all sides parallel to the coordinate axes.)

Remarks

rect is typically the ContactRect associated with the input point that is transformed through the TryTransform method. rect must be recalculated as it does not change with the transformation of the input point.

This method should return an HResult that identifies whether the transformation was successful.

Applies to