Share via


Metodo InkAnalyzerBase.GetStrokeType

Aggiornamento: novembre 2007

Restituisce il tipo del tratto specificato.

Spazio dei nomi:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Sintassi

'Dichiarazione
Public Function GetStrokeType ( _
    strokeId As Integer _
) As StrokeType
'Utilizzo
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 StrokeType GetStrokeType(
    int strokeId
)
public function GetStrokeType(
    strokeId : int
) : StrokeType

Parametri

Valore restituito

Tipo: System.Windows.Ink.AnalysisCore.StrokeType
Classificazione del tratto specificato.

Note

Se il tipo del tratto è costituito dal valore Unspecified di StrokeType, l'oggetto InkAnalyzerBase classifica il tratto durante l'analisi dell'input penna. In caso contrario, l'analizzatore dell'input penna utilizza il tipo impostato sul tratto.

L'analizzatore dell'input penna non imposta il valore del tipo di tratto come parte dell'analisi dell'input penna. Per specificare o modificare il tipo di tratto, utilizzare SetStrokeType o SetStrokesType.

Esempi

Nell'esempio seguente viene stabilito il tipo di tratto specificato e, se non è già impostato su Unspecified, lo si imposta su Unspecified. L'oggetto InkAnalyzerBase, theInkAnalyzerBase, contiene i dati del tratto per l'identificatore di tratto, 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);
}

Piattaforme

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

InkAnalyzerBase Classe

Membri InkAnalyzerBase

Spazio dei nomi System.Windows.Ink.AnalysisCore

InkAnalyzerBase.SetStrokeType

InkAnalyzerBase.SetStrokesType