Table of Contents

Class CodeSnippets

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

Represents collection containing list of code snippets.

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

Constructors

CodeSnippets()

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

CodeSnippets(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.

this[int]

Provides an indexed access to ICodeSnippet objects stored in the collection.

SerializationInfo

Gets or sets an xml representation of this CodeSnippets object.

Methods

AddSnippet()

Adds a new item to the ICodeSnippets collection.

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.

GetXmlType()
InsertSnippet(int)

Inserts a new item to the specified position within the ICodeSnippets collection.

ShouldIndent(ICodeSnippet)

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