In This Article

ICodeSnippetDeclaration Interface

Provides the base requirements for a code snippet declaration.

public interface ICodeSnippetDeclaration

Properties

DefaultText

Gets the default text value of the declaration, when the code snippet has been inserted.

string DefaultText { get; }

Property Value

string:

The default text value of the declaration, when the code snippet has been inserted.

FunctionInvocation

Gets a function to execute when the declaration receives focus.

string FunctionInvocation { get; }

Property Value

string:

A function to execute when the declaration receives focus.

Id

Gets a unique identifier for the declaration.

string Id { get; }

Property Value

string:

A unique identifier for the declaration.

IsEditable

Gets whether the declaration is editable by the end-user once the code snippet has been inserted.

bool IsEditable { get; }

Property Value

bool:

true if the declaration is editable by the end-user once the code snippet has been inserted; otherwise, false.

ToolTip

Gets a description of the expected value and usage of the declaration, that can be used in a tooltip.

string ToolTip { get; }

Property Value

string:

A description of the expected value and usage of the declaration.