Share via


InkAnalyzerBase.GetStrokeType Method

Returns the type of the specified stroke.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function GetStrokeType ( _
    strokeId As Integer _
) As StrokeType
'Usage
Dim instance As InkAnalyzerBase 
Dim strokeId As Integer 
Dim returnValue As StrokeType 

returnValue = instance.GetStrokeType(strokeId)
public StrokeType GetStrokeType(
    int strokeId
)
public:
StrokeType GetStrokeType(
    int strokeId
)
public function GetStrokeType(
    strokeId : int
) : StrokeType

Parameters

Return Value

Type: System.Windows.Ink.AnalysisCore.StrokeType
The classification of the specified stroke.

Remarks

If the stroke's type is the StrokeType value Unspecified, the InkAnalyzerBase classifies the stroke during ink analysis. Otherwise, the ink analyzer uses the type set on the stroke.

The ink analyzer does not set the stroke type value as part of ink analysis. To specify or change the stroke type, use SetStrokeType or SetStrokesType.

Examples

The following example determines the type of a specified stroke and sets it to Unspecified if it is not already set to Unspecified. The InkAnalyzerBase, theInkAnalyzerBase, contains stroke data for the stroke identifier, theStrokeId.

' If the specified stroke is not set to unspecified, 
' Set the stroke's type to unspecified. 
Dim theStrokeType As System.Windows.Ink.AnalysisCore.StrokeType = _
    theInkAnalyzerBase.GetStrokeType(theStrokeId)
If System.Windows.Ink.AnalysisCore.StrokeType.Unspecified <> theStrokeType Then
    theInkAnalyzerBase.SetStrokeType( _
        theStrokeId, System.Windows.Ink.AnalysisCore.StrokeType.Unspecified)
End If
// If the specified stroke is not set to unspecified, 
// Set the stroke's type to unspecified.
System.Windows.Ink.AnalysisCore.StrokeType theStrokeType =
    theInkAnalyzerBase.GetStrokeType(theStrokeId);
if (System.Windows.Ink.AnalysisCore.StrokeType.Unspecified != theStrokeType)
{
    theInkAnalyzerBase.SetStrokeType(theStrokeId,
        System.Windows.Ink.AnalysisCore.StrokeType.Unspecified);
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

InkAnalyzerBase Class

InkAnalyzerBase Members

System.Windows.Ink.AnalysisCore Namespace

InkAnalyzerBase.SetStrokeType

InkAnalyzerBase.SetStrokesType