Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Stroke.GetBounds Method

Retrieves the bounding box for the Stroke object.

Namespace:  System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public virtual Rect GetBounds()

Return Value

Type: System.Windows.Rect
A Rect structure defining the bounding box for the Stroke object.

The following example demonstrates how to get the boundary rectangle for a Stroke object.

Rect myRect = thisStroke.GetBounds();

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft