Table of Contents

Interface ICompletionItem

Namespace
NDepend.CodeQuery
Assembly
NDepend.API.dll

Represents a completion item returned by the method GenerateCompletionItems(string, int).

public interface ICompletionItem
Extension Methods

Properties (4)

DocumentationXml

Gets this completion item documentation?

string DocumentationXml { get; }

Property Value

string

Kind

Gets the kind of this completion item.

KindOfCompletionItem Kind { get; }

Property Value

KindOfCompletionItem

Overloads

If this completion item is a method, gets the eventually overload of the method.

IReadOnlyList<ICompletionItem> Overloads { get; }

Property Value

IReadOnlyList<ICompletionItem>

Text

Gets this completion item text.

string Text { get; }

Property Value

string

Methods (2)

GetImage<T>()

Gets this completion item image.

T GetImage<T>() where T : class

Returns

T

Type Parameters

T

So far the GetImage<T>() parameter type T must be System.Drawing.Image. This requirement might evolve in future version when other UI framework will be supported.

GetImage<T, TTheme>(TTheme)

Gets this completion item image

T GetImage<T, TTheme>(TTheme theme) where T : class where TTheme : class

Parameters

theme TTheme

Returns

T

Type Parameters

T
TTheme

Remarks

This overload is for internal usage only because it lets a chance to pass a a theme object to obtain a themed image.