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)

public Rect GetSelectionBounds()

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.

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