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 function GetRotatedBoundingBox() : PointCollection
Return Value
Type: System.Windows.Media.PointCollection
The rotated rectangle that bounds the LineNode.
Examples
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 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