In This Article

CompletionItem Class

Represents an IntelliPrompt completion item.

public class CompletionItem : ICompletionItem
Inheritance:
object object
Implements:
ICompletionItem

Constructors

CompletionItem()

Initializes an instance of the class.

public CompletionItem()

CompletionItem(string?, IImageSourceProvider?)

Initializes an instance of the class.

public CompletionItem(string? text, IImageSourceProvider? imageSourceProvider)
Parameter Type Description
text string

The text for the item that is displayed within a list.

imageSourceProvider IImageSourceProvider

An IImageSourceProvider that can provide an ImageSource for display within a list.

CompletionItem(string?, IImageSourceProvider?, IContentProvider?)

Initializes an instance of the class.

public CompletionItem(string? text, IImageSourceProvider? imageSourceProvider, IContentProvider? descriptionProvider)
Parameter Type Description
text string

The text for the item that is displayed within a list.

imageSourceProvider IImageSourceProvider

An IImageSourceProvider that can provide an ImageSource for display within a list.

descriptionProvider IContentProvider

An IContentProvider that can provide content for a popup displaying a verbose description of the item.

CompletionItem(string?, IImageSourceProvider?, IContentProvider?, string?, string?)

Initializes an instance of the class.

public CompletionItem(string? text, IImageSourceProvider? imageSourceProvider, IContentProvider? descriptionProvider, string? autoCompletePreText, string? autoCompletePostText)
Parameter Type Description
text string

The text for the item that is displayed within a list.

imageSourceProvider IImageSourceProvider

An IImageSourceProvider that can provide an ImageSource for display within a list.

descriptionProvider IContentProvider

An IContentProvider that can provide content for a popup displaying a verbose description of the item.

autoCompletePreText string

The text that is inserted into the document after the caret when auto-complete is executed.

autoCompletePostText string

The text that is inserted into the document before the caret when auto-complete is executed.

CompletionItem(string?, IImageSourceProvider?, IContentProvider?, string?, string?, object?)

Initializes an instance of the class.

public CompletionItem(string? text, IImageSourceProvider? imageSourceProvider, IContentProvider? descriptionProvider, string? autoCompletePreText, string? autoCompletePostText, object? tag)
Parameter Type Description
text string

The text for the item that is displayed within a list.

imageSourceProvider IImageSourceProvider

An IImageSourceProvider that can provide an ImageSource for display within a list.

descriptionProvider IContentProvider

An IContentProvider that can provide content for a popup displaying a verbose description of the item.

autoCompletePreText string

The text that is inserted into the document after the caret when auto-complete is executed.

autoCompletePostText string

The text that is inserted into the document before the caret when auto-complete is executed.

tag object

An object that contains user-defined data about the item.

CompletionItem(string?, IImageSourceProvider?, object?)

Initializes an instance of the class.

public CompletionItem(string? text, IImageSourceProvider? imageSourceProvider, object? tag)
Parameter Type Description
text string

The text for the item that is displayed within a list.

imageSourceProvider IImageSourceProvider

An IImageSourceProvider that can provide an ImageSource for display within a list.

tag object

An object that contains user-defined data about the item.

Properties

AutoCompletePostText

The text that is inserted into the document after the caret when auto-complete is executed.

public string? AutoCompletePostText { get; set; }

Property Value

string

AutoCompletePreText

The text that is inserted into the document before the caret when auto-complete is executed.

public string? AutoCompletePreText { get; set; }

Property Value

string

DescriptionProvider

An IContentProvider that can provide content for a popup displaying a verbose description of the item.

public IContentProvider? DescriptionProvider { get; set; }

Property Value

IContentProvider

ImageSourceProvider

An IImageSourceProvider that can provide an image for display within a list.

public IImageSourceProvider? ImageSourceProvider { get; set; }

Property Value

IImageSourceProvider

InlineDescription

An optional inline description that is displayed next to the item's Text within a list.

public string? InlineDescription { get; set; }

Property Value

string

Tag

The object that contains user-defined data about the object.

public object? Tag { get; set; }

Property Value

object

Text

The text for the item that is displayed within a list.

public string? Text { get; set; }

Property Value

string

Inherited Members

Extension Methods