Compartir a través de


InkAnalyzer.ModifyTopAlternate Method (AnalysisAlternate, Boolean)

Changes the current top alternate to the specified AnalysisAlternate.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)

Syntax

'Declaration
Public Function ModifyTopAlternate ( _
    alternate As AnalysisAlternate, _
    confirmAutomatically As Boolean _
) As Boolean
'Usage
Dim instance As InkAnalyzer
Dim alternate As AnalysisAlternate
Dim confirmAutomatically As Boolean
Dim returnValue As Boolean

returnValue = instance.ModifyTopAlternate(alternate, confirmAutomatically)
public bool ModifyTopAlternate (
    AnalysisAlternate alternate,
    bool confirmAutomatically
)
public:
bool ModifyTopAlternate (
    AnalysisAlternate^ alternate, 
    bool confirmAutomatically
)
public boolean ModifyTopAlternate (
    AnalysisAlternate alternate, 
    boolean confirmAutomatically
)
public function ModifyTopAlternate (
    alternate : AnalysisAlternate, 
    confirmAutomatically : boolean
) : boolean
Not applicable.

Parameters

  • alternate
  • confirmAutomatically
    true to leave the confirmation type of affected context nodes unchanged; otherwise, false.

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 System.Windows.Ink.ContextNodeBase.Confirm(System.Windows.Ink.ConfirmationType).

Example

This example modifies the top alternate for the InkAnalyzer, theInkAnalyzer, to the AnalysisAlternate, theAnalysisAlternate. It calls ModifyTopAlternate with confirmAutomatically set to true, so that the analyzer does not change the confirmation type of the context nodes associated with the alternate.

' Modify the top alternate. This does not change the confirmation
' type for the associated context nodes.
Me.theInkAnalyzer.ModifyTopAlternate(theAnalysisAlternate, True)
// Modify the top alternate. This does not change the confirmation
// type for the associated context nodes.
this.theInkAnalyzer.ModifyTopAlternate(theAnalysisAlternate, true);

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
System.Windows.Ink Namespace
System.Windows.Ink.AnalysisAlternate
System.Windows.Ink.ContextNode
System.Windows.Ink.ConfirmationType