Show / Hide Table of Contents

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 Source

GetFullPath(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX