C# Class NEnhancer.Common.DTEHelper

Datei anzeigen Open project: ilibis/ClangVSx Class Usage Examples

Public Methods

Method Description
AddButtonToCmdBar ( CommandBar cmdBar, int beforeIndex, string caption, string tooltip ) : CommandBarButton
AddButtonToPopup ( CommandBarPopup popup, int beforeIndex, string caption, string tooltip ) : CommandBarButton
AddNamedCommand2 ( string cmdName, string buttonText, string toolTip, bool useMsoButton, int iconIndex ) : void
DTEHelper ( DTE2 dte, AddIn addin ) : System
GetAddinAssemblyLocation ( ) : string
GetCommandBarByName ( string cmdBarName ) : CommandBar
GetCulturedMenuName ( string englishName ) : string
GetCurrentWord ( ) : string
GetProjectByName ( Solution2 sln, string projName ) : Project
GetProjectNodes ( Solution solution ) : List
GetProjectNodes ( UIHierarchyItems topLevelItems ) : List
GetProjectNodesInSolutionFolder ( UIHierarchyItem item ) : List
GetSelectedLines ( ) : string
GetSelectedText ( ) : string
IsDirectProjectNode ( UIHierarchyItem item ) : bool
IsProjectNode ( UIHierarchyItem item ) : bool
IsProjectNodeInSolutionFolder ( UIHierarchyItem item ) : bool
IsSolutionFolder ( UIHierarchyItem item ) : bool
Restart ( ) : void

Private Methods

Method Description
IsBlank ( string input ) : bool

Method Details

AddButtonToCmdBar() public method

public AddButtonToCmdBar ( CommandBar cmdBar, int beforeIndex, string caption, string tooltip ) : CommandBarButton
cmdBar CommandBar
beforeIndex int
caption string
tooltip string
return CommandBarButton

AddButtonToPopup() public method

public AddButtonToPopup ( CommandBarPopup popup, int beforeIndex, string caption, string tooltip ) : CommandBarButton
popup CommandBarPopup
beforeIndex int
caption string
tooltip string
return CommandBarButton

AddNamedCommand2() public method

public AddNamedCommand2 ( string cmdName, string buttonText, string toolTip, bool useMsoButton, int iconIndex ) : void
cmdName string
buttonText string
toolTip string
useMsoButton bool
iconIndex int
return void

DTEHelper() public method

public DTEHelper ( DTE2 dte, AddIn addin ) : System
dte DTE2
addin AddIn
return System

GetAddinAssemblyLocation() public method

public GetAddinAssemblyLocation ( ) : string
return string

GetCommandBarByName() public method

public GetCommandBarByName ( string cmdBarName ) : CommandBar
cmdBarName string
return CommandBar

GetCulturedMenuName() public method

public GetCulturedMenuName ( string englishName ) : string
englishName string
return string

GetCurrentWord() public method

public GetCurrentWord ( ) : string
return string

GetProjectByName() public method

public GetProjectByName ( Solution2 sln, string projName ) : Project
sln Solution2
projName string
return Project

GetProjectNodes() public method

public GetProjectNodes ( Solution solution ) : List
solution Solution
return List

GetProjectNodes() public method

public GetProjectNodes ( UIHierarchyItems topLevelItems ) : List
topLevelItems UIHierarchyItems
return List

GetProjectNodesInSolutionFolder() public method

public GetProjectNodesInSolutionFolder ( UIHierarchyItem item ) : List
item UIHierarchyItem
return List

GetSelectedLines() public method

public GetSelectedLines ( ) : string
return string

GetSelectedText() public method

public GetSelectedText ( ) : string
return string

IsDirectProjectNode() public method

public IsDirectProjectNode ( UIHierarchyItem item ) : bool
item UIHierarchyItem
return bool

IsProjectNode() public method

public IsProjectNode ( UIHierarchyItem item ) : bool
item UIHierarchyItem
return bool

IsProjectNodeInSolutionFolder() public method

public IsProjectNodeInSolutionFolder ( UIHierarchyItem item ) : bool
item UIHierarchyItem
return bool

IsSolutionFolder() public method

public IsSolutionFolder ( UIHierarchyItem item ) : bool
item UIHierarchyItem
return bool

Restart() public method

public Restart ( ) : void
return void