Compartir a través de


Stroke.GetPoints Method

Stroke.GetPoints Method

Returns an array of Point Leave Site structures that make up the Stroke object.

Definition

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

Parameters

index System.Int32. The starting zero-based index within the array of Point Leave Site structures that make up the Stroke object.
count System.Int32. The number of points to return.

Return Value

System.Drawing.Point[]. Returns an array of Point Leave Site structures that make up the Stroke object.

Remarks

This method returns an array of floating point index values that describe the points. A floating point index is a float value that represents a location somewhere between two points in the Stroke object. As examples, if 0.0 is the first point in the stroke and 1.0 is the second point in the stroke, 0.5 is halfway between the first and second points. Similarly, a floating point index value of 37.25 represents a location that is 25 percent along the line between points 37 and 38 of the stroke.

Examples

[C#]

This C# example gets the first five Point Leave Site structures from the Stroke object, theStroke.

Point[] thePointsResult = theStroke.GetPoints(0, 5);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example gets the first five Point Leave Site structures from the Stroke object, theStroke.

Dim ptStrokePoints () As Point
ptStrokePoints = theStroke.GetPoints(0, 5)
                

See Also