InkWordNode.GetRotatedBoundingBox 方法
傳回限定 InkWordNode 的旋轉週框。
命名空間: Microsoft.Ink
組件: Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)
語法
'宣告
Public Function GetRotatedBoundingBox As Point()
'用途
Dim instance As InkWordNode
Dim returnValue As Point()
returnValue = instance.GetRotatedBoundingBox()
public Point[] GetRotatedBoundingBox()
public:
array<Point>^ GetRotatedBoundingBox()
public Point[] GetRotatedBoundingBox()
public function GetRotatedBoundingBox() : Point[]
傳回值
型別:array<System.Drawing.Point[]
傳回限定 InkWordNode 的旋轉週框。
範例
下列範例會使用 Renderer 物件 (變數名稱為 theRenderer) 和 Panel (英文) 所建立的 Graphics (英文) 物件 (變數名稱為 panelGraphics),為 InkWordNode (變數名稱為 inkWord) 繪製旋轉週框方塊。
' Convert corners to pixel coordinates
Dim corners As Point() = inkWord.GetRotatedBoundingBox()
theRenderer.InkSpaceToPixel(panelGraphics, corners)
' Draw the rectangle
panelGraphics.DrawPolygon(New Pen(Color.Blue), corners)
// Convert corners to pixel coordinates
Point[] corners = inkWord.GetRotatedBoundingBox();
theRenderer.InkSpaceToPixel(panelGraphics, ref corners);
// Draw the rectangle
panelGraphics.DrawPolygon(new Pen(Color.Blue), corners);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0