Table of Contents

Interface ICodeSnippet

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

Represents properties and methods describing particular code snippet in the snippets collection.

public interface ICodeSnippet : ICodeCompletionProviderItem, IComparable

Properties

Code

When implemented by a class, gets or sets a string value that specifies code of the template. The code completion control, that holds a templates collection inserts code when user accepts the input.

CustomData

When implemented by a class, gets or sets an object that can hold a user defined data attached to the template.

Declarations

When implemented by a class, specifies the literals and objects that make up the parts of a code snippet that you can edit.

Description

When implemented by a class, gets description of the ICodeSnippet.

Header

When implemented by a class, gets a header associated with the snippet.

ImageIndex

When implemented by a class, gets or sets the index of the image displayed for the template.

Imports

When implemented by a class, contains the imported namespaces for the code snippet.

Parent

When implemented by a class, gets or sets a parent of the ICodeSnippet.

References

When implemented by a class, contains information about assembly references for the code snippet.