InkWordNode.GetRotatedBoundingBox 方法

返回界定 InkWordNode 边界的旋转矩形。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Function GetRotatedBoundingBox As PointCollection
用法
Dim instance As InkWordNode
Dim returnValue As PointCollection

returnValue = instance.GetRotatedBoundingBox()
public PointCollection GetRotatedBoundingBox()
public:
PointCollection^ GetRotatedBoundingBox()
public PointCollection GetRotatedBoundingBox()
public function GetRotatedBoundingBox() : PointCollection

返回值

类型:System.Windows.Media.PointCollection
界定 InkWordNode 边界的旋转矩形。

示例

下面的示例使用 PolygonInkCanvas (theInkCanvas) 上为 InkWordNode (inkWord) 绘制旋转边界框。

' Show rotated bounding box in blue
Dim rotatedBounds As New Polygon()

rotatedBounds.Points = inkWord.GetRotatedBoundingBox()
rotatedBounds.Stroke = Brushes.Blue

Me.theInkCanvas.Children.Add(rotatedBounds)
// Show rotated bounding box in blue
Polygon rotatedBounds = new Polygon();

rotatedBounds.Points = inkWord.GetRotatedBoundingBox();
rotatedBounds.Stroke = Brushes.Blue;

this.theInkCanvas.Children.Add(rotatedBounds);

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkWordNode 类

InkWordNode 成员

System.Windows.Ink 命名空间