次の方法で共有


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 から始まるインデックス。

戻り値

型 : 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

参照

参照

Stroke クラス

Stroke メンバ

Microsoft.Ink 名前空間

Stroke.SetPoints