LineNode.GetRotatedBoundingBox 方法

返回围绕 LineNode 的旋转边框。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)

语法

声明
Public Function GetRotatedBoundingBox As Point()
用法
Dim instance As LineNode
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[]
围绕 LineNode 的旋转边框。

示例

下面的示例使用 Renderer 对象 theRenderer 和由 Panel 创建的 Graphics 对象 panelGraphics 为 LineNode (line) 绘制一个旋转边框。

    ' Convert corners to pixel coordinates
    Dim corners As Point() = line.GetRotatedBoundingBox()
    theRenderer.InkSpaceToPixel(panelGraphics, corners)
    ' Draw the rectangle
    panelGraphics.DrawPolygon(New Pen(Color.Blue), corners)
Next line
                // Convert corners to pixel coordinates
                Point[] corners = line.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

另请参见

参考

LineNode 类

LineNode 成员

Microsoft.Ink 命名空间