C# Класс Microsoft.VisualStudio.Project.FolderNode

Наследование: HierarchyNode
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateDirectory void
CreateDirectory void
GetSccSpecialFiles void
IProjectSourceNode int
IProjectSourceNode int

Открытые методы

Метод Описание
CollapseFolder ( ) : void

Collapses the folder.

DeleteFolder ( string path ) : void

Override if your node is not a file system folder so that it does nothing or it deletes it from your storage location.

DeleteFromStorage ( string path ) : void
ExpandFolder ( ) : void

Expands the folder.

FolderNode ( ProjectNode root, string relativePath, ProjectElement element ) : System

Constructor for the FolderNode

GetAutomationObject ( ) : object

Get the automation object for the FolderNode

GetEditLabel ( ) : string

Provides the node name for inline editing of caption. Overriden to diable this fuctionality for non member fodler node.

GetIconHandle ( bool open ) : object
GetMKDocument ( ) : string
GetProperty ( int propId ) : object

Gets the node property.

GetSccFiles ( System files, System flags ) : void

Enumerate the files associated with this node. A folder node is not a file and as such no file to enumerate.

RenameDirectory ( string newPath ) : void

Rename the physical directory for a folder node Override if your node does not use file system folder

SetEditLabel ( string label ) : int

Rename Folder

SetProperty ( int propid, object value ) : int

Sets the node property.

UpdateSccStateIcons ( ) : void

Recursevily walks the folder nodes and redraws the state icons

Защищенные методы

Метод Описание
AddToMSBuild ( bool recursive ) : void

Adds the this node to the build system.

CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
CreatePropertiesObject ( ) : NodeProperties
ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, EnvDTE.vsCommandStatus &result ) : int
RenameFolder ( string newName ) : void
SetExpanded ( bool expanded ) : void

Sets the expanded state of the folder.

ShowFileOrFolderAlreadExistsErrorMessage ( string newPath ) : int

Show error message if not in automation mode, otherwise throw exception

Приватные методы

Метод Описание
CreateDirectory ( ) : void
CreateDirectory ( string newName ) : void
GetSccSpecialFiles ( string sccFile, IList files, IList flags ) : void
IProjectSourceNode ( ) : int
IProjectSourceNode ( bool recursive ) : int

Описание методов

AddToMSBuild() защищенный Метод

Adds the this node to the build system.
protected AddToMSBuild ( bool recursive ) : void
recursive bool Flag to indicate if the addition should be recursive.
Результат void

CanDeleteItem() защищенный Метод

protected CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
deleteOperation __VSDELETEITEMOPERATION
Результат bool

CollapseFolder() публичный Метод

Collapses the folder.
public CollapseFolder ( ) : void
Результат void

CreatePropertiesObject() защищенный Метод

protected CreatePropertiesObject ( ) : NodeProperties
Результат NodeProperties

DeleteFolder() публичный Метод

Override if your node is not a file system folder so that it does nothing or it deletes it from your storage location.
public DeleteFolder ( string path ) : void
path string Path to the folder to delete
Результат void

DeleteFromStorage() публичный Метод

public DeleteFromStorage ( string path ) : void
path string
Результат void

ExecCommandOnNode() защищенный Метод

protected ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
cmdGroup System.Guid
cmd uint
nCmdexecopt Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT
pvaIn System.IntPtr
pvaOut System.IntPtr
Результат int

ExpandFolder() публичный Метод

Expands the folder.
public ExpandFolder ( ) : void
Результат void

FolderNode() публичный Метод

Constructor for the FolderNode
public FolderNode ( ProjectNode root, string relativePath, ProjectElement element ) : System
root ProjectNode Root node of the hierarchy
relativePath string relative path from root i.e.: "NewFolder1\\NewFolder2\\NewFolder3
element ProjectElement Associated project element
Результат System

GetAutomationObject() публичный Метод

Get the automation object for the FolderNode
public GetAutomationObject ( ) : object
Результат object

GetEditLabel() публичный Метод

Provides the node name for inline editing of caption. Overriden to diable this fuctionality for non member fodler node.
public GetEditLabel ( ) : string
Результат string

GetIconHandle() публичный Метод

public GetIconHandle ( bool open ) : object
open bool
Результат object

GetMKDocument() публичный Метод

public GetMKDocument ( ) : string
Результат string

GetProperty() публичный Метод

Gets the node property.
public GetProperty ( int propId ) : object
propId int Property id.
Результат object

GetSccFiles() публичный Метод

Enumerate the files associated with this node. A folder node is not a file and as such no file to enumerate.
public GetSccFiles ( System files, System flags ) : void
files System The list of files to be placed under source control.
flags System The flags that are associated to the files.
Результат void

QueryStatusOnNode() защищенный Метод

protected QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, EnvDTE.vsCommandStatus &result ) : int
cmdGroup System.Guid
cmd uint
pCmdText System.IntPtr
result EnvDTE.vsCommandStatus
Результат int

RenameDirectory() публичный Метод

Rename the physical directory for a folder node Override if your node does not use file system folder
public RenameDirectory ( string newPath ) : void
newPath string
Результат void

RenameFolder() защищенный Метод

protected RenameFolder ( string newName ) : void
newName string
Результат void

SetEditLabel() публичный Метод

Rename Folder
public SetEditLabel ( string label ) : int
label string new Name of Folder
Результат int

SetExpanded() защищенный Метод

Sets the expanded state of the folder.
protected SetExpanded ( bool expanded ) : void
expanded bool Flag that indicates the expanded state of the folder. /// This should be 'true' for expanded and 'false' for collapsed state.
Результат void

SetProperty() публичный Метод

Sets the node property.
public SetProperty ( int propid, object value ) : int
propid int Property id.
value object Property value.
Результат int

ShowFileOrFolderAlreadExistsErrorMessage() защищенный Метод

Show error message if not in automation mode, otherwise throw exception
protected ShowFileOrFolderAlreadExistsErrorMessage ( string newPath ) : int
newPath string path of file or folder already existing on disk
Результат int

UpdateSccStateIcons() публичный Метод

Recursevily walks the folder nodes and redraws the state icons
public UpdateSccStateIcons ( ) : void
Результат void