In This Article

CodeSnippetDeclarationBase Class

Provides the abstract base class for a code snippet declaration.

public abstract class CodeSnippetDeclarationBase : ICodeSnippetDeclaration
Inheritance:
object object
Derived:
CodeSnippetLiteralDeclaration CodeSnippetObjectDeclaration
Implements:
ICodeSnippetDeclaration

Constructors

CodeSnippetDeclarationBase()

Initializes an instance of the class.

protected CodeSnippetDeclarationBase()

Properties

DefaultText

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

public string? DefaultText { get; set; }

Property Value

string

FunctionInvocation

A function to execute when the declaration receives focus.

public string? FunctionInvocation { get; set; }

Property Value

string

Id

A unique identifier for the declaration.

public string? Id { get; set; }

Property Value

string

IsEditable

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

public bool IsEditable { get; set; }

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.

public string? ToolTip { get; set; }

Property Value

string

Inherited Members

Extension Methods