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,在 InkCanvas (theInkCanvas) 上繪製 LineNode (line) 的旋轉週框方塊。
' 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