Share via


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 function ModifyTopAlternate(
    alternate : AnalysisAlternate, 
    confirmAutomatically : boolean
) : boolean

Parameters

  • confirmAutomatically
    Type: System.Boolean

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

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 ContextNodeBaseConfirm(ConfirmationType).

Examples

This example modifies the top AnalysisAlternate for an InkAnalyzer (named theInkAnalyzer). The top AnalysisAlternate is named theAnalysisAlternate. It calls ModifyTopAlternate with confirmAutomatically set to true, so that the analyzer does not change the confirmation type of any 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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

See Also

Reference

InkAnalyzer Class

InkAnalyzer Members

ModifyTopAlternate Overload

System.Windows.Ink Namespace

System.Windows.Ink.AnalysisAlternate

System.Windows.Ink.ContextNode

System.Windows.Ink.ConfirmationType