ICodeSnippetFolder Interface
Provides the base requirements for a folder that can contain ICodeSnippetProvider objects and other child folders.
public interface ICodeSnippetFolder
Properties
Folders
Gets the collection of child folders.
IList<ICodeSnippetFolder> Folders { get; }
Property Value
- IList<ICodeSnippetFolder>:
The collection of child folders.
Items
Gets the collection of code snippet metadata items in the folder.
IList<ICodeSnippetMetadata> Items { get; }
Property Value
- IList<ICodeSnippetMetadata>:
The collection of code snippet metadata items in the folder.
Name
Gets the name of the folder.
Tag
Gets or sets the object that contains user-defined data about the object.
object Tag { get; set; }
Property Value
Remarks
Any type derived from the object class can be assigned to this property.
Methods
FindItemByShortcut(string, bool)
Recursively searches for an item with the specified shortcut.
ICodeSnippetMetadata FindItemByShortcut(string shortcut, bool isCaseSensitive)
Parameter | Type | Description |
---|---|---|
shortcut | string | The shortcut text. |
isCaseSensitive | bool | Whether the comparison should be case-sensitive. |
Returns
- ICodeSnippetMetadata:
The ICodeSnippetMetadata that was found, if any.