GetSelectionBounds Method

InkCanvas.GetSelectionBounds Method ()


Gets the bounds of the selected strokes and elements on the InkCanvas.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

member GetSelectionBounds : unit -> Rect

Return Value

Type: System.Windows.Rect

The smallest rectangle that encompasses all selected strokes and elements.

The following example prevents the user from making a selection smaller than its original size.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft