C# 클래스 Microsoft.VisualStudio.Project.FolderNode

상속: HierarchyNode
파일 보기 프로젝트 열기: tunnelvisionlabs/MPFProj10 1 사용 예제들

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