Stroke.GetPoints メソッド (Int32, Int32)
Stroke オブジェクトを構成する Point 構造体の、指定した範囲を返します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Function GetPoints ( _
index As Integer, _
count As Integer _
) As Point()
'使用
Dim instance As Stroke
Dim index As Integer
Dim count As Integer
Dim returnValue As Point()
returnValue = instance.GetPoints(index, _
count)
public Point[] GetPoints(
int index,
int count
)
public:
array<Point>^ GetPoints(
int index,
int count
)
public Point[] GetPoints(
int index,
int count
)
public function GetPoints(
index : int,
count : int
) : Point[]
パラメータ
- index
型 : System.Int32
Stroke オブジェクトを構成する Point 構造体の配列内の、0 から始まるインデックスの開始位置。
- count
型 : System.Int32
返すポイントの数。
戻り値
型 : array<System.Drawing.Point[]
Stroke オブジェクトを構成する Point 構造体の配列を返します。
例
この例では、InkOverlay で選択された各 Stroke オブジェクトが調べられます。Stroke オブジェクトに少なくとも 90 のパケットが含まれる場合、Stroke オブジェクトにある 50 個の Point オブジェクト (位置 39 にある Point オブジェクトから開始) が取得され、新しい Stroke オブジェクトを作成するために使用されます。新しい Stroke オブジェクトは、次に X 方向および Y 方向に 200 HIMETRIC 単位移動されます。
For Each S As Stroke In mInkOverlay.Selection
If S.PacketCount >= 90 Then
Dim sPts() As Point = S.GetPoints(39, 50)
Dim newStroke As Stroke = S.Ink.CreateStroke(sPts)
newStroke.Move(200, 200)
End If
Next
foreach (Stroke S in mInkOverlay.Selection)
{
if (S.PacketCount >= 90)
{
Point[] sPts = S.GetPoints(39, 50);
Stroke newStroke = S.Ink.CreateStroke(sPts);
newStroke.Move(200, 200);
}
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0