Share via


SuggestionItemOptions Class

Definition

Instructs the editor if and how to display the builder item. In suggestion mode, the UI displays a single CompletionItem, aka "Builder", whose DisplayText and InsertText are equal to text typed by the user so far.

public ref class SuggestionItemOptions sealed
public sealed class SuggestionItemOptions
type SuggestionItemOptions = class
Public NotInheritable Class SuggestionItemOptions
Inheritance
SuggestionItemOptions

Constructors

SuggestionItemOptions(String, String)

Creates instance of SuggestionItemOptions with specified tooltip text and text to display in absence of user input. Provide this instance to CompletionContext to activate suggestion mode.

Properties

DisplayTextWhenEmpty

Text to use as suggestion item's DisplayText when user has not typed anything. Usually prompts user to begin typing and describes what does the suggestion item represent.

ToolTipText

Localized tooltip text for the suggestion item. Usually describes why suggestion mode is active, and what does the suggestion item represent.

Applies to