ExpansionProvider.InTemplateEditingMode Property
Indicates whether the code snippet is currently being edited.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property InTemplateEditingMode As Boolean
public virtual bool InTemplateEditingMode { get; }
public:
virtual property bool InTemplateEditingMode {
bool get ();
}
abstract InTemplateEditingMode : bool with get
override InTemplateEditingMode : bool with get
function get InTemplateEditingMode () : boolean
Property Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.