Compartir a través de


Stroke.SetPoint Method

Sets the Point structure at the specified index in a Stroke object.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Function SetPoint ( _
    index As Integer, _
    point As Point _
) As Integer
'Usage
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
Not applicable.

Parameters

  • index
    The zero-based index of the Point structure to modify.
  • point
    The new Point value for the point in the Stroke object at index.

Return Value

Returns the number of points changed. Generally, this method returns 1.

Example

This C# example sets the first point of the Stroke object, theStroke, to the origin.

theStroke.SetPoint(0, new Point(0,0));

This Microsoft® Visual Basic® .NET example sets the first point of the Stroke object, theStroke, to the origin.

theStroke.SetPoint(0, New Point(0,0))

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Stroke Class
Stroke Members
Microsoft.Ink Namespace
Microsoft.Ink.Stroke.SetPoints