SuggestionBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A suggestion passed to TryDisplaySuggestionAsync(SuggestionBase, CancellationToken).
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 |