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

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

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

Метод Описание
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.

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

Constructor for the FolderNode

GetAutomationObject ( ) : object

Get the automation object for the FolderNode

GetIconHandle ( bool open ) : object
GetMkDocument ( ) : string
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

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

Метод Описание
CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
CreatePropertiesObject ( ) : NodeProperties
DeleteFromStorage ( string path ) : void
GetSccFiles ( IList files, IList flags ) : void

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

QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, QueryStatusResult &result ) : int
UpdateSccStateIcons ( ) : void

Recursevily walks the folder nodes and redraws the state icons

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

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

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

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

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

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

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() защищенный Метод

protected DeleteFromStorage ( string path ) : void
path string
Результат 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

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

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

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

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

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

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

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

protected QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, QueryStatusResult &result ) : int
cmdGroup System.Guid
cmd uint
pCmdText System.IntPtr
result QueryStatusResult
Результат 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

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

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

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

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