ExpansionProvider.InTemplateEditingMode Property
Indicates whether the code snippet is currently being edited.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'宣言
Public Overridable ReadOnly Property InTemplateEditingMode As Boolean
Get
'使用
Dim instance As ExpansionProvider
Dim value As Boolean
value = instance.InTemplateEditingMode
public virtual bool InTemplateEditingMode { get; }
public:
virtual property bool InTemplateEditingMode {
bool get ();
}
abstract InTemplateEditingMode : bool
override InTemplateEditingMode : bool
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
- 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.