Partager via


IXRStrokeCollection::GetBounds (Compact 2013)

3/28/2014

This method returns the bounds of the strokes in this collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetBounds(
    XRRect* pRect
) = 0;

Parameters

  • pRect
    [out] Pointer to an XRRect structure that describes the bounds of the strokes in this collection.

Return Value

Returns S_OK if successful; otherwise, returns an HRESULT error code. For common error codes for XAML for Windows Embedded, see XAML for Windows Embedded Error Messages.

Remarks

The values in the XRRect structure that is provided in pRect on return are for reference only and cannot be set.

You can use the returned XRRect structure in several different scenarios. You can use XRRect as input for an IXRRectangleGeometry object that displays a bounding box in the UI, or use it to check for intersecting strokes or to perform other kinds of hit testing.

.NET Framework Equivalent

System.Windows.Ink.StrokeCollection.GetBounds

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRStrokeCollection
Classes for Collection Management
XRRect