Stroke.SetPoint メソッド
Stroke オブジェクト内の指定したインデックスにある Point 構造体を設定します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Function SetPoint ( _
index As Integer, _
point As Point _
) As Integer
'使用
Dim instance As Stroke
Dim index As Integer
Dim point As Point
Dim returnValue As Integer
returnValue = instance.SetPoint(index, _
point)
public int SetPoint(
int index,
Point point
)
public:
int SetPoint(
int index,
Point point
)
public int SetPoint(
int index,
Point point
)
public function SetPoint(
index : int,
point : Point
) : int
パラメータ
- index
型 : System.Int32
変更する Point 構造体の 0 から始まるインデックス。
- point
型 : System.Drawing.Point
index にある Stroke オブジェクト内のポイントの新しい Point 値。
戻り値
型 : System.Int32
変更されるポイントの数を返します。通常、このメソッドは 1 を返します。
例
この C# の例では、Stroke オブジェクト theStroke の最初のポイントを原点に設定します。
theStroke.SetPoint(0, new Point(0,0));
この Microsoft Visual Basic .NET の例では、Stroke オブジェクト theStroke の最初のポイントを原点に設定します。
theStroke.SetPoint(0, New Point(0,0))
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0