Share via


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 function SetPoint(
    index : int, 
    point : Point
) : int

Parameters

Return Value

Type: System.Int32
Returns the number of points changed. Generally, this method returns 1.

Examples

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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Stroke Class

Stroke Members

Microsoft.Ink Namespace

Stroke.SetPoints