InkAnalyzer.SetStrokeType 메서드
업데이트: 2007년 11월
Stroke의 스트로크 형식을 변경합니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink.Analysis(Microsoft.Ink.Analysis.dll)
구문
‘선언
Public Sub SetStrokeType ( _
stroke As Stroke, _
strokeType As StrokeType _
)
‘사용 방법
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim strokeType As StrokeType
instance.SetStrokeType(stroke, strokeType)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public:
void SetStrokeType(
Stroke^ stroke,
StrokeType strokeType
)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public function SetStrokeType(
stroke : Stroke,
strokeType : StrokeType
)
매개 변수
- stroke
형식: Microsoft.Ink.Stroke
strokeType을 할당할 스트로크입니다.
- strokeType
형식: Microsoft.Ink.StrokeType
strokes의 스트로크에 할당할 스트로크 형식입니다.
설명
스트로크의 형식이 Microsoft.Ink.StrokeType 값인 Unspecified이면 InkAnalyzer는 잉크 분석 도중 스트로크를 분류합니다. 그렇지 않으면 InkAnalyzer에서 스트로크에 설정된 형식을 사용합니다.
현재 스트로크에 할당된 형식을 가져오려면 InkAnalyzer.GetStrokeType을 호출합니다.
예제
이 예제에서는 InkAnalyzer인 theInkAnalyzer에 연결된 ContextNode인 theContextNode의 모든 스트로크에 StrokeType 값인 theStrokeType을 할당합니다.
' Iterate through the strokes within the context node and update
' the stroke type of those strokes.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In theContextNode.Strokes
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType)
Next theStroke
// Iterate through the strokes within the context node and update
// the stroke type of those strokes.
foreach (Microsoft.Ink.Stroke theStroke in theContextNode.Strokes)
{
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType);
}
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원