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