ContextNodeDeletingEventArgs.NodeToBeDeleted 屬性
取得 InkAnalyzer 正在刪除的內容節點。
命名空間: Microsoft.Ink
組件: Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)
語法
'宣告
Public ReadOnly Property NodeToBeDeleted As ContextNode
'用途
Dim instance As ContextNodeDeletingEventArgs
Dim value As ContextNode
value = instance.NodeToBeDeleted
public ContextNode NodeToBeDeleted { get; }
public:
property ContextNode^ NodeToBeDeleted {
ContextNode^ get ();
}
/** @property */
public ContextNode get_NodeToBeDeleted()
public function get NodeToBeDeleted () : ContextNode
屬性值
型別:Microsoft.Ink.ContextNode
InkAnalyzer 正在刪除的內容節點。
範例
下列範例會定義用來處理 ContextNodeDeleting 事件的 RemoveContextNode 方法。事件資訊會傳遞至 theDocumentModel 文件模型物件。
這個範例並未提供文件模型的定義,也未示範處理傳入資訊的方式。
'/ <summary>
'/ Handles the InkAnalyzer.ContextNodeDeleting event.
'/ </summary>
'/ <param name="sender">The source of the event.</param>
'/ <param name="e">The event data.</param>
Private Sub RemoveContextNode( _
ByVal sender As Object, _
ByVal e As Microsoft.Ink.ContextNodeDeletingEventArgs)
' Do not remove unclassified ink nodes from the document model.
If Microsoft.Ink.ContextNodeType.UnclassifiedInk _
<> e.NodeToBeDeleted.Type Then
Me.theDocumentModel.RemoveNode(e.NodeToBeDeleted)
End If
End Sub 'RemoveContextNode
/// <summary>
/// Handles the InkAnalyzer.ContextNodeDeleting event.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The event data.</param>
private void RemoveContextNode(
object sender, Microsoft.Ink.ContextNodeDeletingEventArgs e)
{
// Do not remove unclassified ink nodes from the document model.
if (Microsoft.Ink.ContextNodeType.UnclassifiedInk
!= e.NodeToBeDeleted.Type)
{
this.theDocumentModel.RemoveNode(e.NodeToBeDeleted);
}
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
ContextNodeDeletingEventArgs 類別