Class ProjectItemExtensions
Extension methods for the ProjectItem class.
Inheritance
System.Object
ProjectItemExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EnvDTE
Assembly: Community.VisualStudio.Toolkit.dll
Syntax
public static class ProjectItemExtensions
Methods
| Improve this Doc View SourceGetFullPath(ProjectItem)
Gets the full file/directory path of the project item
Declaration
public static string GetFullPath(this ProjectItem item)
Parameters
Type | Name | Description |
---|---|---|
EnvDTE.ProjectItem | item |
Returns
Type | Description |
---|---|
System.String |
OpenInPreviewTab(ProjectItem)
Opens a file in the Preview Tab (provisional tab) if supported by the editor factory.
Declaration
public static void OpenInPreviewTab(this ProjectItem item)
Parameters
Type | Name | Description |
---|---|---|
EnvDTE.ProjectItem | item |
OpenInPreviewTab(String)
Opens a file in the Preview Tab (provisional tab) if supported by the editor factory.
Declaration
public static void OpenInPreviewTab(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file |
SetItemType(ProjectItem, String)
Sets the item type in the project file for the item.
Declaration
public static void SetItemType(this ProjectItem item, string itemType)
Parameters
Type | Name | Description |
---|---|---|
EnvDTE.ProjectItem | item | |
System.String | itemType |