InkAnalyzerBase.UpdateStrokeData 메서드
업데이트: 2007년 11월
지정된 스트로크의 패킷 데이터를 업데이트합니다.
네임스페이스: System.Windows.Ink.AnalysisCore
어셈블리: IACore(IACore.dll)
구문
‘선언
Public Sub UpdateStrokeData ( _
strokeId As Integer, _
strokePacketData As Integer(), _
strokePacketDescription As Guid() _
)
‘사용 방법
Dim instance As InkAnalyzerBase
Dim strokeId As Integer
Dim strokePacketData As Integer()
Dim strokePacketDescription As Guid()
instance.UpdateStrokeData(strokeId, strokePacketData, _
strokePacketDescription)
public void UpdateStrokeData(
int strokeId,
int[] strokePacketData,
Guid[] strokePacketDescription
)
public:
void UpdateStrokeData(
int strokeId,
array<int>^ strokePacketData,
array<Guid>^ strokePacketDescription
)
public void UpdateStrokeData(
int strokeId,
int[] strokePacketData,
Guid[] strokePacketDescription
)
public function UpdateStrokeData(
strokeId : int,
strokePacketData : int[],
strokePacketDescription : Guid[]
)
매개 변수
- strokeId
형식: System.Int32
스트로크 식별자입니다.
- strokePacketData
형식: array<System.Int32[]
스트로크에 대한 패킷 데이터가 들어 있는 배열입니다.
- strokePacketDescription
형식: array<System.Guid[]
패킷 속성 식별자가 들어 있는 배열입니다.
설명
strokePacketData에는 스트로크의 모든 점에 대한 패킷 데이터가 들어 있습니다. strokePacketDescription에는 스트로크의 각 점에 대해 포함된 패킷 데이터의 형식을 설명하는 GUID(Globally Unique Identifier)가 들어 있습니다. 사용 가능한 패킷 속성의 전체 목록은 Microsoft.Ink.PacketProperty 클래스를 참조하십시오.
이 메서드는 잉크 분석기의 DirtyRegion을 업데이트하지 않습니다.
지정된 스트로크가 잉크 분석기에 연결되어 있지 않으면 이 메서드는 잉크 분석기를 업데이트하지 않고 반환됩니다.
예제
다음 예제에서는 InkAnalyzerBase의 UpdateStrokesCacheBase 이벤트를 처리하는 theInkAnalyzerBase_UpdateStrokesCacheBase라는 메서드를 정의합니다. 이 메서드는 Microsoft.Ink.Ink 개체인 theInk에서 스트로크 데이터를 검색합니다. 실제로 응용 프로그램에서 Microsoft.Ink.Ink 개체를 사용하여 스트로크 데이터를 저장하는 경우 응용 프로그램은 파생된 Microsoft.Ink.InkAnalyzer 클래스를 사용해야 합니다.
''' <summary>
''' Handles the UpdateStrokesCacheBase event of an InkAnalyzerBase.
''' </summary>
''' <param name="sender">The source of the event.</param>
''' <param name="e">The event data.</param>
''' <remarks>
''' This method converts stroke data to packet data for example only.
''' The InkAnalyzerBase is used when your application is handling packet
''' data. If your application uses stroke data from an Ink object, then
''' you would use InkAnalyzer.
''' </remarks>
Sub theInkAnalyzerBase_UpdateStrokesCacheBase( _
ByVal sender As Object, _
ByVal e As System.Windows.Ink.AnalysisCore.UpdateStrokesCacheBaseEventArgs)
' The source is an InkAnalyzerBase.
Dim theInkAnalyzerBase As System.Windows.Ink.AnalysisCore.InkAnalyzerBase = _
DirectCast(sender, System.Windows.Ink.AnalysisCore.InkAnalyzerBase)
' Add the stroke data to the ink analyzer.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In Me.theInk.CreateStrokes(e.GetStrokeIds())
theInkAnalyzerBase.UpdateStrokeData( _
theStroke.Id, _
theStroke.GetPacketData(), _
theStroke.PacketDescription)
Next theStroke
End Sub 'theInkAnalyzerBase_UpdateStrokesCacheBase
/// <summary>
/// Handles the UpdateStrokesCacheBase event of an InkAnalyzerBase.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The event data.</param>
/// <remarks>
/// This method converts stroke data to packet data for example only.
/// The InkAnalyzerBase is used when your application is handling packet
/// data. If your application uses stroke data from an Ink object, then
/// you would use InkAnalyzer.
/// </remarks>
void theInkAnalyzerBase_UpdateStrokesCacheBase(
object sender, System.Windows.Ink.AnalysisCore.UpdateStrokesCacheBaseEventArgs e)
{
// The source is an InkAnalyzerBase.
System.Windows.Ink.AnalysisCore.InkAnalyzerBase theInkAnalyzerBase =
sender as System.Windows.Ink.AnalysisCore.InkAnalyzerBase;
// Add the stroke data to the ink analyzer.
foreach (Microsoft.Ink.Stroke theStroke
in this.theInk.CreateStrokes(e.GetStrokeIds()))
{
theInkAnalyzerBase.UpdateStrokeData(
theStroke.Id, theStroke.GetPacketData(),
theStroke.PacketDescription);
}
}
플랫폼
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원
참고 항목
참조
System.Windows.Ink.AnalysisCore 네임스페이스
InkAnalyzerBase.ClearStrokeData