Freigeben über


Stroke.SetPoints Method

Stroke.SetPoints Method

Sets an array of Point Leave Site structures at the specified indices in a Stroke object.

Definition

Visual Basic .NET Public Function SetPoints( _
ByVal points() As Point _
) As Integer
C# public int SetPoints(
Point[] points
);
Managed C++ public: int* SetPoints(
Point *points __gc[]
);

Parameters

points System.Drawing.Point[]. The array of new Point Leave Site values to replace the points in the Stroke object beginning at the first point.

Return Value

System.Int32. Returns the actual number of points set.

Remarks

This method does not change the number of points in the Stroke object. To change the number of points in the Stroke object, a new Stroke object must be created, or the Stroke object must be split.

The length of the points array determines the count of points to be modified in the Stroke object.

This method does not provide for truncating the Stroke object. If the points array contains fewer points than the Stroke object, the remainder of the points in the Stroke object are not modified.

This method does not provide for extending the Stroke object. If the points array contains more points than the Stroke object, the extra points are not used.

Examples

[C#]

This C# example sets the points of the Stroke object, theStroke, to the contents of the array of points, theNewPoints.

int thePointsSet = theStroke.SetPoints(theNewPoints);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example sets the points of the Stroke object, theStroke, to the contents of the array of points, theNewPoints.

Dim thePointsSet As Long
thePointsSet = theStroke.SetPoints(theNewPoints)
                

See Also