LineNode.GetRotatedBoundingBox - метод
Обновлен: Ноябрь 2007
Returns rotated rectangle that bounds the 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[]
The rotated rectangle that bounds the LineNode.
Примеры
The following example draws the rotated bounding box for a LineNode, line, by using a Renderer object, theRenderer, and a Graphics object, panelGraphics, which is created by a Panel.
' 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