GetBounds Method (StrokeCollection)

Returns a Rect which is the bounding box of the strokes in the collection.

XAML
Cannot use methods in XAML.
Scripting
retval = object.GetBounds()

Return Value

Rect

The bounding box of the strokes in the StrokeCollection.

Remarks

Do not attempt to set values in the returned Rect; it should be used for reference only.

Examples

JavaScript
  var newRect = inkPresenter.Strokes.GetBounds();

For the strokes shown in the example making up "Ink!", the Rect returned by calling GetBounds() would be the red box.

Bounding box

Bounding box

Applies To

StrokeCollection

See Also

Ink Support in Microsoft Silverlight