Share via


SuggestionBase Class

Definition

public abstract class SuggestionBase : System.ComponentModel.INotifyPropertyChanged
type SuggestionBase = class
    interface INotifyPropertyChanged
Public MustInherit Class SuggestionBase
Implements INotifyPropertyChanged
Inheritance
SuggestionBase
Implements

Constructors

SuggestionBase()

Properties

EditStyle

What style should be used to display the proposed edits?

Elements

A list of button elements that are displayed in the suggestion hint bar.

HasMultipleSuggestions

Are there alternative suggestions?

TipStyle

How should the tip be shown?

Methods

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

Called by the SuggestionSessionBase when the suggestion is accepted.

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

The user has requested an alternate proposal. Update the proposal via DisplayProposalAsync(ProposalBase, CancellationToken).

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

Called by the SuggestionSessionBase when the suggestion is is dismissed.

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

There has been some change (typically a change in the text buffer) that has caused a change in the proposal.

Events

PropertyChanged

Applies to