Compartir a través de


IXRStroke::GetBounds (Compact 2013)

3/28/2014

This method retrieves the bounding box for the IXRStroke object.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetBounds(
    __out XRRect *pValue
) = 0;

Parameters

  • pValue
    [in] Points to an XRRect structure that defines the bounding box of the stroke.

Return Values

Returns a standard HRESULT value.

Remarks

Do not set values in the returned XRRect. Use it for reference only.

You can use the returned XRRect in several ways:

  • As input for an IXRRectangleGeometry that displays a bounding box in the user interface
  • To check for intersecting strokes or to perform other kinds of hit testing.

.NET Framework Equivalent

System.Windows.Ink.Stroke.GetBounds

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRStroke