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 boolean ModifyTopAlternate (
AnalysisAlternate alternate
)
public function ModifyTopAlternate (
alternate : AnalysisAlternate
) : boolean
Not applicable.
Parameters
- alternate
The alternate to set as the top alternate.
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.
Example
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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkAnalyzer Class
InkAnalyzer Members
Microsoft.Ink Namespace
Microsoft.Ink.AnalysisAlternate
Microsoft.Ink.ContextNode
Microsoft.Ink.ConfirmationType