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 PointCollection GetRotatedBoundingBox ()
public function GetRotatedBoundingBox () : PointCollection
Not applicable.
Return Value
Returns the rotated rectangle that bounds the InkWordNode.
Example
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 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
InkWordNode Class
InkWordNode Members
System.Windows.Ink Namespace