ExpansionProvider Members
Include Protected Members
Include Inherited Members
Provides support for inserting code snippets into source code.
The ExpansionProvider type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
ExpansionProvider | Initializes a new instance of the ExpansionProvider class. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
BeginTemplateEditing | Inserts the previously prepared code snippet and starts the snippet editing mode. |
![]() |
DisplayExpansionBrowser | 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 | Ends the current snippet editing mode. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Cleans up all resources just before the ExpansionProvider object is destroyed. (Overrides Object.Finalize().) |
![]() |
FindExpansionByShortcut | Obtains the path and title of a code snippet given the snippet's shortcut name. |
![]() |
FormatSpan | Formats the specified text span. |
![]() |
GetExpansionFunction(XmlElement, String) | Returns an IVsExpansionFunction object representing the expansion function described in the given XML template node. |
![]() |
GetExpansionFunction(IXMLDOMNode, String, IVsExpansionFunction%) | Returns a IVsExpansionFunction object representing the expansion function described in the given XML template node (COM implementation). |
![]() |
GetExpansionSpan | Returns the span occupied by the snippet currently being edited. |
![]() |
GetFieldSpan | Gets the field span of the specified field |
![]() |
GetFieldValue | Returns the value of the specified field. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
HandlePostExec | Called after a command has been executed. |
![]() |
HandlePreExec | Called before a command is executed. |
![]() |
HandleQueryStatus | Determines if the specified command is handled by the ExpansionProvider class. |
![]() |
InsertNamedExpansion | Inserts the specified snippet into the source at the given position. |
![]() |
InsertSpecificExpansion | Inserts the specific snippet into the source at the specified position. |
![]() |
IsValidKind | 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 | 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 | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnAfterInsertion | Called after a snippet has been inserted into the source. |
![]() |
OnBeforeInsertion | Called just before the snippet has been inserted into the source. |
![]() |
OnItemChosen | Called when an item is chosen in a snippet browser. |
![]() |
PositionCaretForEditing | Puts the caret in a position suitable for editing. |
![]() |
PrepareTemplate | Prepares for insertion of the specified snippet. |
![]() |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Expansion | Returns the IVsExpansion object used for inserting snippets into a buffer. |
![]() |
ExpansionSession | Returns the expansion session created to manage editing the code snippet. |
![]() |
InTemplateEditingMode | Indicates whether the code snippet is currently being edited. |
![]() |
Source | Returns the Source object associated with this expansion provider. |
![]() |
TextView | Returns the text view containing the source file being manipulated by the expansion provider. |
Top