InkAnalyzer.ModifyTopAlternate Method (AnalysisAlternate)
Changes the current top alternate to the specified AnalysisAlternate. Clears the confirmation type for all context nodes associated with the alternate.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Function ModifyTopAlternate ( _
alternate As AnalysisAlternate _
) As Boolean
'Usage
Dim instance As InkAnalyzer
Dim alternate As AnalysisAlternate
Dim returnValue As Boolean
returnValue = instance.ModifyTopAlternate(alternate)
public bool ModifyTopAlternate(
AnalysisAlternate alternate
)
public:
bool ModifyTopAlternate(
AnalysisAlternate^ alternate
)
public function ModifyTopAlternate(
alternate : AnalysisAlternate
) : boolean
Parameters
alternate
Type: Microsoft.Ink.AnalysisAlternateThe alternate to set as the top alternate.
Return Value
Type: System.Boolean
Remarks
To get analysis alternates, use GetAlternates. To get the context nodes associated with an analysis alternate, use AnalysisAlternate.AlternateNodes.
To change the confirmation type for a context node, use ContextNode.Confirm.
Examples
This example modifies the top alternate for the InkAnalyzer, theInkAnalyzer, to the AnalysisAlternate, theAnalysisAlternate. The call to ModifyTopAlternate clears the confirmation type for all context nodes associated with the alternate.
' Modify the top alternate. This clears the confirmation type
' for the associated context nodes.
Me.theInkAnalyzer.ModifyTopAlternate(theAnalysisAlternate)
// Modify the top alternate. This clears the confirmation type
// for the associated context nodes.
this.theInkAnalyzer.ModifyTopAlternate(theAnalysisAlternate);
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0