ParagraphNode.GetRotatedBoundingBox Method
Returns a rotated rectangle that bounds the ParagraphNode.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Function GetRotatedBoundingBox As PointCollection
'Usage
Dim instance As ParagraphNode
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 ParagraphNode.
Examples
The following example uses a Polygon to draw a rotated bounding box for a ParagraphNode, paragraph, on an InkCanvas, theInkCanvas.
' Convert corners to pixel coordinates
Dim paragraphBounds As New Polygon()
paragraphBounds.Points = paragraph.GetRotatedBoundingBox()
paragraphBounds.Stroke = Brushes.Blue
theInkCanvas.Children.Add(paragraphBounds)
// Convert corners to pixel coordinates
Polygon paragraphBounds = new Polygon();
paragraphBounds.Points = paragraph.GetRotatedBoundingBox();
paragraphBounds.Stroke = Brushes.Blue;
theInkCanvas.Children.Add(paragraphBounds);
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