Freigeben über


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 PointCollection GetRotatedBoundingBox ()
public function GetRotatedBoundingBox () : PointCollection
Not applicable.

Return Value

Returns the rotated rectangle that bounds the ParagraphNode.

Example

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 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

ParagraphNode Class
ParagraphNode Members
System.Windows.Ink Namespace