SuggestionBase 类

定义

public abstract class SuggestionBase : System.ComponentModel.INotifyPropertyChanged
type SuggestionBase = class
    interface INotifyPropertyChanged
Public MustInherit Class SuggestionBase
Implements INotifyPropertyChanged
继承
SuggestionBase
实现

构造函数

SuggestionBase()

传递给 的建议 TryDisplaySuggestionAsync(SuggestionBase, CancellationToken)

属性

EditStyle

应使用哪种样式来显示建议的编辑?

Elements

建议提示栏中显示的按钮元素列表。

HasMultipleSuggestions

是否有其他建议?

TipStyle

应如何显示小费?

方法

OnAcceptedAsync(SuggestionSessionBase, ProposalBase, ProposalBase, ReasonForAccept, CancellationToken)

接受建议时由 SuggestionSessionBase 调用。

OnChangeProposalAsync(SuggestionSessionBase, ProposalBase, ProposalBase, Boolean, CancellationToken)

用户已请求备用建议。 通过 DisplayProposalAsync(ProposalBase, CancellationToken)更新建议。

OnDismissedAsync(SuggestionSessionBase, ProposalBase, ProposalBase, ReasonForDismiss, CancellationToken)

当建议被消除时由 SuggestionSessionBase 调用。

OnProposalUpdatedAsync(SuggestionSessionBase, ProposalBase, ProposalBase, ReasonForUpdate, VirtualSnapshotPoint, CompletionState, CancellationToken)

(文本缓冲区) 发生了一些更改,这导致了建议的更改。

事件

PropertyChanged

传递给 的建议 TryDisplaySuggestionAsync(SuggestionBase, CancellationToken)

适用于