Share via


InkWordNode.GetRotatedBoundingBox Method

Returns a rotated rectangle that bounds the InkWordNode.

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

Syntax

'Declaration
Public Function GetRotatedBoundingBox As PointCollection
'Usage
Dim instance As InkWordNode 
Dim returnValue As PointCollection 

returnValue = instance.GetRotatedBoundingBox()
public PointCollection GetRotatedBoundingBox()
public:
PointCollection^ GetRotatedBoundingBox()
public function GetRotatedBoundingBox() : PointCollection

Return Value

Type: System.Windows.Media.PointCollection
The rotated rectangle that bounds the InkWordNode.

Examples

The following example uses a Polygon to draw the rotated bounding box for an InkWordNode, inkWord, on an InkCanvas, theInkCanvas.

' Show rotated bounding box in blue 
Dim rotatedBounds As New Polygon()

rotatedBounds.Points = inkWord.GetRotatedBoundingBox()
rotatedBounds.Stroke = Brushes.Blue

Me.theInkCanvas.Children.Add(rotatedBounds)
// Show rotated bounding box in blue
Polygon rotatedBounds = new Polygon();

rotatedBounds.Points = inkWord.GetRotatedBoundingBox();
rotatedBounds.Stroke = Brushes.Blue;

this.theInkCanvas.Children.Add(rotatedBounds);

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkWordNode Class

InkWordNode Members

System.Windows.Ink Namespace