LineNode.GetRotatedBoundingBox 方法
返回界定 LineNode 边界的旋转矩形。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Function GetRotatedBoundingBox As PointCollection
用法
Dim instance As LineNode
Dim returnValue As PointCollection
returnValue = instance.GetRotatedBoundingBox()
public PointCollection GetRotatedBoundingBox()
public:
PointCollection^ GetRotatedBoundingBox()
public PointCollection GetRotatedBoundingBox()
public function GetRotatedBoundingBox() : PointCollection
返回值
类型:System.Windows.Media.PointCollection
界定 LineNode 边界的旋转矩形。
示例
下面的示例使用 Polygon 在名为 theInkCanvas 的 InkCanvas 上为名为 line 的 LineNode 绘制旋转边界框。
' Convert corners to pixel coordinates
Dim lineBounds As New Polygon()
lineBounds.Points = line.GetRotatedBoundingBox()
lineBounds.Stroke = Brushes.Blue
theInkCanvas.Children.Add(lineBounds)
// Show rotated bounding box in blue
Polygon lineBounds = new Polygon();
lineBounds.Points = line.GetRotatedBoundingBox();
lineBounds.Stroke = Brushes.Blue;
theInkCanvas.Children.Add(lineBounds);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0