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 |
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 |
| 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 |
| 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 |
| 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 |
| 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.
AutoCompletePreText
The text that is inserted into the document before the caret when auto-complete is executed.
DescriptionProvider
An IContentProvider that can provide content for a popup displaying a verbose description of the item.
ImageSourceProvider
An IImageSourceProvider that can provide an image for display within a list.
InlineDescription
An optional inline description that is displayed next to the item's Text within a list.
Tag
The object that contains user-defined data about the object.
Text
The text for the item that is displayed within a list.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()