ExpansionProvider Methods

 

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

NameDescription
System_CAPS_pubmethodBeginTemplateEditing(Int32, Int32)

Inserts the previously prepared code snippet and starts the snippet editing mode.

System_CAPS_pubmethodDisplayExpansionBrowser(IVsTextView^, String^, array<String^>^, Boolean, array<String^>^, Boolean)

Displays a list of expansion templates of the specified type and kind.

System_CAPS_pubmethodDispose()

Cleans up allocated resource just before the ExpansionProvider object is destroyed.

System_CAPS_pubmethodEndExpansion()

Called when an expansion session has ended.

System_CAPS_pubmethodEndTemplateEditing(Boolean)

Ends the current snippet editing mode.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Cleans up all resources just before the ExpansionProvider object is destroyed.(Overrides Object::Finalize().)

System_CAPS_pubmethodFindExpansionByShortcut(IVsTextView^, String^, TextSpan, Boolean, String^, String^)

Obtains the path and title of a code snippet given the snippet's shortcut name.

System_CAPS_pubmethodFormatSpan(IVsTextLines^, array<TextSpan>^)

Formats the specified text span.

System_CAPS_pubmethodGetExpansionFunction(IXMLDOMNode^, String^, IVsExpansionFunction^)

Returns a IVsExpansionFunction object representing the expansion function described in the given XML template node (COM implementation).

System_CAPS_pubmethodGetExpansionFunction(XmlElement^, String^)

Returns an IVsExpansionFunction object representing the expansion function described in the given XML template node.

System_CAPS_pubmethodGetExpansionSpan()

Returns the span occupied by the snippet currently being edited.

System_CAPS_pubmethodGetFieldSpan(String^, TextSpan)

Gets the field span of the specified field

System_CAPS_pubmethodGetFieldValue(String^, String^)

Returns the value of the specified field.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodHandlePostExec(Guid, UInt32, UInt32, Boolean, IntPtr, IntPtr)

Called after a command has been executed.

System_CAPS_pubmethodHandlePreExec(Guid, UInt32, UInt32, IntPtr, IntPtr)

Called before a command is executed.

System_CAPS_pubmethodHandleQueryStatus(Guid, UInt32, Int32)

Determines if the specified command is handled by the ExpansionProvider class.

System_CAPS_pubmethodInsertNamedExpansion(IVsTextView^, String^, String^, TextSpan, Boolean)

Inserts the specified snippet into the source at the given position.

System_CAPS_pubmethodInsertSpecificExpansion(IVsTextView^, XmlElement^, TextSpan, String^)

Inserts the specific snippet into the source at the specified position.

System_CAPS_pubmethodIsValidKind(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.

System_CAPS_pubmethodIsValidType(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.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnAfterInsertion(IVsExpansionSession^)

Called after a snippet has been inserted into the source.

System_CAPS_pubmethodOnBeforeInsertion(IVsExpansionSession^)

Called just before the snippet has been inserted into the source.

System_CAPS_pubmethodOnItemChosen(String^, String^)

Called when an item is chosen in a snippet browser.

System_CAPS_pubmethodPositionCaretForEditing(IVsTextLines^, array<TextSpan>^)

Puts the caret in a position suitable for editing.

System_CAPS_pubmethodPrepareTemplate(String^, String^)

Prepares for insertion of the specified snippet.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Return to top
Show: