Compartir a través de


LineNode.GetRotatedBoundingBox Method

Returns rotated rectangle that bounds the LineNode.

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

Syntax

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

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

Return Value

The rotated rectangle that bounds the LineNode.

Example

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

' Convert corners to pixel coordinates
Dim lineBounds As New Polygon()

lineBounds.Points = line.GetRotatedBoundingBox()
lineBounds.Stroke = Brushes.Blue

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

lineBounds.Points = line.GetRotatedBoundingBox();
lineBounds.Stroke = Brushes.Blue;

theInkCanvas.Children.Add(lineBounds);

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

LineNode Class
LineNode Members
System.Windows.Ink Namespace