指定したストロークの型を返します。
名前空間 : System.Windows.Ink.AnalysisCore
アセンブリ : IACore (IACore.dll 内)
構文
'宣言
Public Function GetStrokeType ( _
strokeId As Integer _
) As StrokeType
'使用
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
パラメータ
- strokeId
型 : System.Int32
ストローク識別子。
戻り値
型 : System.Windows.Ink.AnalysisCore.StrokeType
指定したストロークの分類。
解説
ストロークの型が StrokeType 値 Unspecified の場合、InkAnalyzerBase はインク分析時にストロークを分類します。それ以外の場合は、インク アナライザはストロークで設定された型を使用します。
インク アナライザは、ストロークの型の値をインク分析の一部として設定しません。ストロークの型を指定または変更するには、SetStrokeType または SetStrokesType を使用します。
例
次の例では、指定したストロークの型を決定し、まだ Unspecified に設定されていない場合は、Unspecified に設定します。InkAnalyzerBase、theInkAnalyzerBase には、ストローク識別子 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);
}
プラットフォーム
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0