ReadyToReconcileEventHandler 委派
表示將處理 InkAnalyzer 之 ReadyToReconcile 事件的方法。
命名空間: Microsoft.Ink
組件: Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)
語法
'宣告
Public Delegate Sub ReadyToReconcileEventHandler ( _
sender As Object, _
e As EventArgs _
)
'用途
Dim instance As New ReadyToReconcileEventHandler(AddressOf HandlerMethod)
public delegate void ReadyToReconcileEventHandler(
Object sender,
EventArgs e
)
public delegate void ReadyToReconcileEventHandler(
Object^ sender,
EventArgs^ e
)
/** @delegate */
public delegate void ReadyToReconcileEventHandler(
Object sender,
EventArgs e
)
JScript 不支援委派。
參數
- sender
型別:System.Object
事件的來源。
- e
型別:System.EventArgs
事件資料。
備註
在建立 ReadyToReconcileEventHandler 委派 (Delegate) 時,您要識別處理事件的方法。若要使事件與您的事件處理常式產生關聯,請將委派的執行個體 (Instance) 加入至事件。除非您移除委派,否則每當事件發生時就會呼叫事件處理常式。如需事件處理常式委派的詳細資訊,請參閱事件和委派 (英文)。
範例
下列範例會定義 theInkAnalyzer_ReadyToReconcile 方法,用來處理 InkAnalyzer 的 ReadyToReconcile 事件。如果設定了布林值 abortAnalysis,theInkAnalyzerBase_ReadyToReconcile 會中止分析作業,否則會執行手動協調並繼續進行分析作業。
''' <summary>
''' Handles the StrokeReparentedBase event of an InkAnalyzerBase.
''' </summary>
''' <param name="sender">The source of the event.</param>
''' <param name="e">The event data.</param>
Sub theInkAnalyzer_ReadyToReconcile( _
ByVal sender As Object, _
ByVal e As EventArgs)
' The source is an InkAnalyzerBase.
Dim theInkAnalyzerBase As Microsoft.Ink.InkAnalyzer = _
DirectCast(sender, Microsoft.Ink.InkAnalyzer)
' Check whether or not to abort analysis before continuing.
If Me.abortAnalysis Then
' Abort analysis and update the analyzer's dirty region.
Dim unanalyzedRegion As Microsoft.Ink.AnalysisRegion = _
theInkAnalyzerBase.Abort()
theInkAnalyzerBase.DirtyRegion.Union(unanalyzedRegion)
Else
' Manually reconcile the analysis results for this analysis phase.
theInkAnalyzerBase.Reconcile()
End If
End Sub 'theInkAnalyzer_ReadyToReconcile
/// <summary>
/// Handles the ReadyToReconcile event of an InkAnalyzerBase.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The event data.</param>
void theInkAnalyzer_ReadyToReconcile(object sender, EventArgs e)
{
// The source is an InkAnalyzer.
Microsoft.Ink.InkAnalyzer theInkAnalyzerBase =
sender as Microsoft.Ink.InkAnalyzer;
// Check whether or not to abort analysis before continuing.
if (this.abortAnalysis)
{
// Abort analysis and update the analyzer's dirty region.
Microsoft.Ink.AnalysisRegion unanalyzedRegion =
theInkAnalyzerBase.Abort();
theInkAnalyzerBase.DirtyRegion.Union(unanalyzedRegion);
}
else
{
// Manually reconcile the analysis results for this analysis phase.
theInkAnalyzerBase.Reconcile();
}
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0