StrokeCollection::GetBounds Method ()
.NET Framework (current version)
Returns the bounds of the strokes in the collection.
Assembly: PresentationCore (in PresentationCore.dll)
Return Value
Type: System.Windows::RectA Rect that contains the bounds of the strokes in the StrokeCollection.
The following example demonstrates how to get the bounds of the StrokeCollection and draw them on the control. This example assumes that there is an InkCanvas called inkCanvas1.
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: