InkAnalyzer.ModifyTopAlternate 方法 (AnalysisAlternate, Boolean)
将当前最佳备选项更改为指定的 AnalysisAlternate。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Function ModifyTopAlternate ( _
alternate As AnalysisAlternate, _
confirmAutomatically As Boolean _
) As Boolean
用法
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
参数
- alternate
类型:System.Windows.Ink.AnalysisAlternate
- confirmAutomatically
类型:System.Boolean
如果将受影响的上下文节点的确认类型保持不变,则为 true;否则为 false。
返回值
备注
若要获取分析备选项,请使用 GetAlternates。若要获取与分析备选项关联的上下文节点,请使用 AnalysisAlternate.AlternateNodes。
若要更改上下文节点的确认类型,请使用 ContextNodeBaseConfirm(ConfirmationType)。
示例
此示例修改 InkAnalyzer(名为 theInkAnalyzer))的最佳 AnalysisAlternate。该最佳 AnalysisAlternate 的名称为 theAnalysisAlternate。此示例调用 ModifyTopAlternate 并将 confirmAutomatically 设置为 true,以使分析器不更改与该备选项关联的任何上下文节点的确认类型。
' 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);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
System.Windows.Ink.AnalysisAlternate