Stroke.GetPoints 方法
傳回所有構成 Stroke 物件之點 (英文) 結構的陣列。
命名空間: Microsoft.Ink
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Function GetPoints As Point()
'用途
Dim instance As Stroke
Dim returnValue As Point()
returnValue = instance.GetPoints()
public Point[] GetPoints()
public:
array<Point>^ GetPoints()
public Point[] GetPoints()
public function GetPoints() : Point[]
傳回值
型別:array<System.Drawing.Point[]
傳回構成 Stroke 物件之點 (英文) 結構的陣列。
範例
在這個範例中,InkOverlay 中每個已選取 Stroke 物件的點都會用來建立新的 Stroke 物件。然後新的 Stroke 物件會朝 X 和 Y 方向移動 200 HIMETRIC 單位。
For Each S As Stroke In mInkOverlay.Selection
Dim sPts() As Point = S.GetPoints()
Dim newStroke As Stroke = S.Ink.CreateStroke(sPts)
newStroke.Move(200, 200)
Next
foreach (Stroke S in mInkOverlay.Selection)
{
Point[] sPts = S.GetPoints();
Stroke newStroke = S.Ink.CreateStroke(sPts);
newStroke.Move(200, 200);
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0