Dela via


ExpansionProvider.InTemplateEditingMode Property

Indicates whether the code snippet is currently being edited.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property InTemplateEditingMode As Boolean
'Usage
Dim instance As ExpansionProvider 
Dim value As Boolean 

value = instance.InTemplateEditingMode
public virtual bool InTemplateEditingMode { get; }
public:
virtual property bool InTemplateEditingMode {
    bool get ();
}
public function get InTemplateEditingMode () : boolean

Property Value

Type: System.Boolean
Returns true if the code snippet is currently being edited; otherwise, returns false.

Remarks

A code snippet is first inserted into the source file, then the core editor is placed in a special editing mode where the fields in the snippet can be modified before the snippet is finally committed to the buffer.

The base method returns the value of an internal flag that is set when the InsertNamedExpansion or InsertSpecificExpansion methods are called. A call to EndTemplateEditing clears this internal flag.

.NET Framework Security

See Also

Reference

ExpansionProvider Class

ExpansionProvider Members

Microsoft.VisualStudio.Package Namespace