업데이트: 2007년 11월
Stroke의 형식을 반환합니다.
네임스페이스: System.Windows.Ink
어셈블리: IAWinFX(IAWinFX.dll)
구문
‘선언
Public Function GetStrokeType ( _
stroke As Stroke _
) As StrokeType
‘사용 방법
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim returnValue As StrokeType
returnValue = instance.GetStrokeType(stroke)
public StrokeType GetStrokeType(
Stroke stroke
)
public:
StrokeType GetStrokeType(
Stroke^ stroke
)
public StrokeType GetStrokeType(
Stroke stroke
)
public function GetStrokeType(
stroke : Stroke
) : StrokeType
매개 변수
- stroke
형식: System.Windows.Ink.Stroke
해당 형식 분류로 특성이 지정되는 스트로크입니다.
반환 값
형식: System.Windows.Ink.StrokeType
stroke의 분류입니다.
설명
스트로크의 형식이 System.Windows.Ink.StrokeType 값인 Unspecified이면 InkAnalyzer는 잉크 분석 도중 스트로크를 분류합니다. 그렇지 않으면 InkAnalyzer에서 스트로크에 설정된 형식을 사용합니다.
스트로크 형식을 지정하거나 변경하려면 SetStrokeType() 또는 SetStrokesType()을 사용합니다.
예제
이 예제에서는 ContextNode의 모든 스트로크 형식을 반환하는 데 사용되는 메서드인 GetStrokeTypesInNode를 정의합니다.
' Iterate through the strokes within the context node and add the
' stroke types to a collection.
Dim theStrokeTypes As New System.Collections.ArrayList()
Dim theStroke As Stroke
For Each theStroke In theContextNode.Strokes
Dim theStrokeType As StrokeType = theInkAnalyzer.GetStrokeType(theStroke)
If Not theStrokeTypes.Contains(theStrokeType) Then
theStrokeTypes.Add(theStrokeType)
End If
Next theStroke
// Iterate through the strokes within the context node and add the
// stroke types to a collection.
System.Collections.ArrayList theStrokeTypes =
new System.Collections.ArrayList();
foreach (Stroke theStroke in theContextNode.Strokes)
{
StrokeType theStrokeType =
theInkAnalyzer.GetStrokeType(theStroke);
if (!theStrokeTypes.Contains(theStrokeType))
{
theStrokeTypes.Add(theStrokeType);
}
}
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원