ExpansionProvider Methods
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
| Name | Description | |
|---|---|---|
![]() | BeginTemplateEditing(Int32, Int32) | Inserts the previously prepared code snippet and starts the snippet editing mode. |
![]() | DisplayExpansionBrowser(IVsTextView^, String^, array<String^>^, Boolean, array<String^>^, Boolean) | Displays a list of expansion templates of the specified type and kind. |
![]() | Dispose() | Cleans up allocated resource just before the ExpansionProvider object is destroyed. |
![]() | EndExpansion() | Called when an expansion session has ended. |
![]() | EndTemplateEditing(Boolean) | Ends the current snippet editing mode. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | Cleans up all resources just before the ExpansionProvider object is destroyed.(Overrides Object::Finalize().) |
![]() | FindExpansionByShortcut(IVsTextView^, String^, TextSpan, Boolean, String^, String^) | Obtains the path and title of a code snippet given the snippet's shortcut name. |
![]() | FormatSpan(IVsTextLines^, array<TextSpan>^) | Formats the specified text span. |
![]() | GetExpansionFunction(IXMLDOMNode^, String^, IVsExpansionFunction^) | Returns a IVsExpansionFunction object representing the expansion function described in the given XML template node (COM implementation). |
![]() | GetExpansionFunction(XmlElement^, String^) | Returns an IVsExpansionFunction object representing the expansion function described in the given XML template node. |
![]() | GetExpansionSpan() | Returns the span occupied by the snippet currently being edited. |
![]() | GetFieldSpan(String^, TextSpan) | Gets the field span of the specified field |
![]() | GetFieldValue(String^, String^) | Returns the value of the specified field. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | HandlePostExec(Guid, UInt32, UInt32, Boolean, IntPtr, IntPtr) | Called after a command has been executed. |
![]() | HandlePreExec(Guid, UInt32, UInt32, IntPtr, IntPtr) | Called before a command is executed. |
![]() | HandleQueryStatus(Guid, UInt32, Int32) | Determines if the specified command is handled by the ExpansionProvider class. |
![]() | InsertNamedExpansion(IVsTextView^, String^, String^, TextSpan, Boolean) | Inserts the specified snippet into the source at the given position. |
![]() | InsertSpecificExpansion(IVsTextView^, XmlElement^, TextSpan, String^) | Inserts the specific snippet into the source at the specified position. |
![]() | IsValidKind(IVsTextLines^, array<TextSpan>^, String^, Int32) | Determines whether this is valid text for expansion. This method should be overridden if you want to specify where in the source document the expansion can take place. |
![]() | IsValidType(IVsTextLines^, array<TextSpan>^, array<String^>^, Int32, Int32) | Determines whether or not a given type is valid for expansion purposes. This method should be overridden if you want to specify where in the source document the expansion can take place. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnAfterInsertion(IVsExpansionSession^) | Called after a snippet has been inserted into the source. |
![]() | OnBeforeInsertion(IVsExpansionSession^) | Called just before the snippet has been inserted into the source. |
![]() | OnItemChosen(String^, String^) | Called when an item is chosen in a snippet browser. |
![]() | PositionCaretForEditing(IVsTextLines^, array<TextSpan>^) | Puts the caret in a position suitable for editing. |
![]() | PrepareTemplate(String^, String^) | Prepares for insertion of the specified snippet. |
![]() | ToString() | (Inherited from Object.) |

