Table of Contents

Class CodeSnippetsProvider

Namespace
Alternet.Syntax.CodeCompletion
Assembly
Alternet.Syntax.v9.dll

Represents collection containing list of code snippets.

public class CodeSnippetsProvider : CodeCompletionProvider, IList, ICollection, IReadOnlyList<ICodeCompletionProviderItem>, IReadOnlyCollection<ICodeCompletionProviderItem>, ICodeSnippetsProvider, ICodeCompletionProvider, IList<ICodeCompletionProviderItem>, ICollection<ICodeCompletionProviderItem>, IEnumerable<ICodeCompletionProviderItem>, IEnumerable, IExport, IImport
Inheritance
CodeSnippetsProvider
Implements
Extension Methods

Constructors

CodeSnippetsProvider()

Initializes a new instance of the CodeSnippets class with default settings.

CodeSnippetsProvider(ICodeSnippetMember)

Initializes a new instance of the CodeSnippets class with specified parent.

Properties

ColumnCount

Returns number of the columns. In this class ColumnCount always return 1.

EditPath

Gets or sets a value indicating path to the nested code completion provider.

Images

Gets or sets the ImageList for code completion items.

Methods

ColumnVisible(int)

Indicates whether specified column is visible.

FindByShortcut(string, bool)

Gets a code snippet by its shortcut.

GetColumnText(int, int)

Returns text from specified column and snippet.

GetDescription(int)

Returns a content of the column, named 'Description', of the specified item from the collection.

GetImageIndex(int)

Returns ICodeSnippet.ImageIndex from the snippet specified by index.

GetName(int)

Returns value ICodeSnippetHeader.Title of the code snippet specified by index.

GetParent()

Returns code completion provider owning this ICodeCompletionProvider instance.

GetText(int)

Returns value of ICodeSnippetCode.Code of the code snippet specified by index.

OnClosePopup(object, ClosingEventArgs)

Checks for nested members and raises ClosePopup event if they are not found.

ShouldIndent(ICodeSnippet)

Gets a boolean value indicating whether the multi-line snippet code should be indented when inserting to the edit control.