In This Article

ICodeSnippetDeclaration Interface

Provides the base requirements for a code snippet declaration.

public interface ICodeSnippetDeclaration

Properties

DefaultText

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

string? DefaultText { get; }

Property Value

string

FunctionInvocation

A function to execute when the declaration receives focus.

string? FunctionInvocation { get; }

Property Value

string

Id

A unique identifier for the declaration.

string? Id { get; }

Property Value

string

IsEditable

Indicates 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

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

string? ToolTip { get; }

Property Value

string

Extension Methods