Table of Contents

Class CodeSnippet

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

Represents particular code snippet in the snippets collection.

public class CodeSnippet : CodeCompletionProviderItem, ICodeSnippet, ICodeCompletionProviderItem, IComparable
Inheritance
CodeSnippet
Implements

Constructors

CodeSnippet()

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

CodeSnippet(ICodeSnippets)

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

Properties

Code

Gets or sets a string value that specifies code of the snippet. The code completion control, that holds a snippet collection inserts code when user accepts the input.

CustomData

Gets or sets an object that can hold a user defined data attached to the snippet.

Declarations

Specifies the literals and objects that make up the parts of a code snippet that you can edit.

Description

Gets string value representing description of the CodeSnippet.

Header

Gets a header associated with the snippet.

ImageIndex

Gets or sets the index of the image displayed for the snippet.

Imports

Contains the imported namespaces for the code snippet.

Parent

Gets or sets a parent of the CodeSnippet.

References

Contains information about assembly references for the code snippet.

SerializationInfo

Gets or sets an xml representation of this CodeSnippet object.

Methods

CompareTo(object)

Compares this instance to a specified object and returns an indication of their relative values.

OnCodeChanged()
OnCustomDataChanged()
OnHeaderChanged()
OnImageIndexChanged()
OnParentChanged()
OnSnippetDeclarationsChanged()
OnSnippetImportsChanged()
OnSnippetReferencesChanged()