Share via


StrokeIntersection Constructor

Initializes a new instance of the StrokeIntersection structure from the start and end indices.

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

Syntax

'Declaration
Public Sub New ( _
    beginIndex As Single, _
    endIndex As Single _
)
'Usage
Dim beginIndex As Single 
Dim endIndex As Single 

Dim instance As New StrokeIntersection(beginIndex, _
    endIndex)
public StrokeIntersection(
    float beginIndex,
    float endIndex
)
public:
StrokeIntersection(
    float beginIndex, 
    float endIndex
)
public function StrokeIntersection(
    beginIndex : float, 
    endIndex : float
)

Parameters

  • beginIndex
    Type: System.Single

    The start of the stroke intersection, as a floating point index.

  • endIndex
    Type: System.Single

    The end of the stroke intersection, as a floating point index.

Remarks

A floating point index is a float value that represents a location somewhere between two points in the stroke. 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

This C# example declares and creates a StrokeIntersection structure, theStrokeIntersection.

StrokeIntersection theStrokeIntersection = new StrokeIntersection(start, end);

This Microsoft® Visual Basic® .NET example declares and creates a StrokeIntersection structure, theStrokeIntersection.

Dim theStrokeIntersection As New StrokeIntersection(start, end)

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

StrokeIntersection Structure

StrokeIntersection Members

Microsoft.Ink Namespace