Share via


ICompletionPresenterProvider Interface

Definition

Represents a class that produces instances of ICompletionPresenter

public interface class ICompletionPresenterProvider
public interface ICompletionPresenterProvider
type ICompletionPresenterProvider = interface
Public Interface ICompletionPresenterProvider

Examples

[Export(typeof(ICompletionPresenterProvider))]
[Name(nameof(MyCompletionPresenterProvider))]
[ContentType("any")]
[TextViewRoles(PredefinedTextViewRoles.Editable)]
[Order(Before = KnownCompletionNames.DefaultCompletionPresenter)]
public class MyCompletionPresenterProvider : ICompletionPresenterProvider

Remarks

This is a MEF component and should be exported with [ContentType] and [Name] attributes and optional [Order] attribute. An instance of ICompletionPresenterProvider is selected first by matching ContentType with content type of the TextBuffer, and then by Order. Only one ICompletionPresenterProvider is used in a given view.

Properties

Options

Contains additional properties of thie ICompletionPresenter that may be accessed prior to initializing an instance of ICompletionPresenter

Methods

GetOrCreate(ITextView)

Returns instance of ICompletionPresenter that will host completion for given ITextView. Called on the UI thread.

Applies to