Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a rotated rectangle that bounds the ParagraphNode.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Function GetRotatedBoundingBox As Point()
'Usage
Dim instance As ParagraphNode
Dim returnValue As Point()
returnValue = instance.GetRotatedBoundingBox()
public Point[] GetRotatedBoundingBox()
public:
array<Point>^ GetRotatedBoundingBox()
public function GetRotatedBoundingBox() : Point[]
Return Value
Type: array<System.Drawing.Point[]
Returns the rotated rectangle that bounds the ParagraphNode.
Examples
The following example draws a rotated bounding box for a ParagraphNode, paragraph, by using a Renderer object, theRenderer, and a Graphics object, panelGraphics, which was created by a Panel.
' Convert corners to pixel coordinates
Dim corners As Point() = paragraph.GetRotatedBoundingBox()
theRenderer.InkSpaceToPixel(panelGraphics, corners)
' Draw the rectangle
panelGraphics.DrawPolygon(New Pen(Color.Blue), corners)
// Convert corners to pixel coordinates
Point[] corners = paragraph.GetRotatedBoundingBox();
theRenderer.InkSpaceToPixel(panelGraphics, ref corners);
// Draw the rectangle
panelGraphics.DrawPolygon(new Pen(Color.Blue), corners);
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
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