C# Class Scorchio.VisualStudio.Services.ProjectItemService

Defines the ProjectItemService type.
Inheritance: IProjectItemService
Afficher le fichier Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Méthodes publiques

Méthode Description
AddHeaderComment ( string headerComment ) : void

Adds the header comment.

AddNameSpace ( string nameSpace ) : CodeNamespace

Adds the name space.

AddUsingStatement ( string usingStatement ) : void

Adds the using statement.

CreateInterface ( ) : CodeInterface

Creates the interface.

DeleteFolder ( IEnumerable excludeFiles = null ) : void

Deletes the folder.

FixUsingStatements ( ) : void

Fixes the using statements.

GetCSharpProjectItems ( ) : IEnumerable

Gets the c# project items.

GetFirstClass ( ) : CodeClass

Gets the first class.

GetFirstCodeElement ( ) : CodeElement

Gets the first code element.

GetFirstInterface ( ) : CodeInterface

Gets the first interface.

GetFirstNameSpace ( ) : CodeNamespace

Gets the first name space.

GetFolder ( string folderName ) : IProjectItemService

Gets the folder.

GetFolder ( ) : string

Gets the folder.

GetFolderOrCreate ( string folderName ) : IProjectItemService

Gets the folder or create.

GetFolderProjectItems ( ) : IEnumerable

Gets the folder project items.

GetNameSpace ( ) : CodeNamespace

Gets the name space.

GetProjectItem ( string name ) : IProjectItemService

Gets the project item.

GetSubProjectItems ( ) : IEnumerable

Gets the sub project items.

GetUsingStatements ( ) : IEnumerable

Gets the using statements.

ImplementCodeSnippet ( CodeSnippet codeSnippet, bool formatFunctionParameters ) : void

Implements the code snippet.

ImplementUnitTestingCodeSnippet ( CodeSnippet codeSnippet, string codeFile, bool removeHeader, bool removeComments, bool formatFunctionParameters ) : void

Implements the unit testing code snippet.

IsCSharpFile ( ) : bool

Determines whether [is C sharp file].

MoveUsingStatements ( ) : void

Moves the using statements.

Open ( ) : void

Opens this instance.

ProjectItemService ( ProjectItem projectItem ) : System.Collections.Generic

Initializes a new instance of the ProjectItemService class.

Remove ( ) : void

Removes this instance.

RemoveAndDelete ( ) : void

Removes the and delete.

RemoveComments ( ) : void

Removes the comments.

RemoveDoubleBlankLines ( ) : void

Removes the double blank lines.

RemoveHeader ( ) : void

Removes the header.

ReplacePattern ( string text, string replacementText ) : void

Replaces the pattern.

ReplaceText ( string text, string replacementText ) : void

Replaces the text.

Save ( ) : void

Saves this instance.

SortAndRemoveUsingStatements ( ) : void

Sorts the and remove using statements.

Method Details

AddHeaderComment() public méthode

Adds the header comment.
public AddHeaderComment ( string headerComment ) : void
headerComment string The header comment.
Résultat void

AddNameSpace() public méthode

Adds the name space.
public AddNameSpace ( string nameSpace ) : CodeNamespace
nameSpace string The name space.
Résultat CodeNamespace

AddUsingStatement() public méthode

Adds the using statement.
public AddUsingStatement ( string usingStatement ) : void
usingStatement string The using statement.
Résultat void

CreateInterface() public méthode

Creates the interface.
public CreateInterface ( ) : CodeInterface
Résultat CodeInterface

DeleteFolder() public méthode

Deletes the folder.
public DeleteFolder ( IEnumerable excludeFiles = null ) : void
excludeFiles IEnumerable The exclude files.
Résultat void

FixUsingStatements() public méthode

Fixes the using statements.
public FixUsingStatements ( ) : void
Résultat void

GetCSharpProjectItems() public méthode

Gets the c# project items.
public GetCSharpProjectItems ( ) : IEnumerable
Résultat IEnumerable

GetFirstClass() public méthode

Gets the first class.
public GetFirstClass ( ) : CodeClass
Résultat CodeClass

GetFirstCodeElement() public méthode

Gets the first code element.
public GetFirstCodeElement ( ) : CodeElement
Résultat CodeElement

GetFirstInterface() public méthode

Gets the first interface.
public GetFirstInterface ( ) : CodeInterface
Résultat CodeInterface

GetFirstNameSpace() public méthode

Gets the first name space.
public GetFirstNameSpace ( ) : CodeNamespace
Résultat CodeNamespace

GetFolder() public méthode

Gets the folder.
public GetFolder ( string folderName ) : IProjectItemService
folderName string Name of the folder.
Résultat IProjectItemService

GetFolder() public méthode

Gets the folder.
public GetFolder ( ) : string
Résultat string

GetFolderOrCreate() public méthode

Gets the folder or create.
public GetFolderOrCreate ( string folderName ) : IProjectItemService
folderName string Name of the folder.
Résultat IProjectItemService

GetFolderProjectItems() public méthode

Gets the folder project items.
public GetFolderProjectItems ( ) : IEnumerable
Résultat IEnumerable

GetNameSpace() public méthode

Gets the name space.
public GetNameSpace ( ) : CodeNamespace
Résultat CodeNamespace

GetProjectItem() public méthode

Gets the project item.
public GetProjectItem ( string name ) : IProjectItemService
name string The name.
Résultat IProjectItemService

GetSubProjectItems() public méthode

Gets the sub project items.
public GetSubProjectItems ( ) : IEnumerable
Résultat IEnumerable

GetUsingStatements() public méthode

Gets the using statements.
public GetUsingStatements ( ) : IEnumerable
Résultat IEnumerable

ImplementCodeSnippet() public méthode

Implements the code snippet.
public ImplementCodeSnippet ( CodeSnippet codeSnippet, bool formatFunctionParameters ) : void
codeSnippet CodeSnippet The code snippet.
formatFunctionParameters bool if set to true [format function parameters].
Résultat void

ImplementUnitTestingCodeSnippet() public méthode

Implements the unit testing code snippet.
public ImplementUnitTestingCodeSnippet ( CodeSnippet codeSnippet, string codeFile, bool removeHeader, bool removeComments, bool formatFunctionParameters ) : void
codeSnippet CodeSnippet The code snippet.
codeFile string The code file.
removeHeader bool if set to true [remove header].
removeComments bool if set to true [remove comments].
formatFunctionParameters bool if set to true [format function parameters].
Résultat void

IsCSharpFile() public méthode

Determines whether [is C sharp file].
public IsCSharpFile ( ) : bool
Résultat bool

MoveUsingStatements() public méthode

Moves the using statements.
public MoveUsingStatements ( ) : void
Résultat void

Open() public méthode

Opens this instance.
public Open ( ) : void
Résultat void

ProjectItemService() public méthode

Initializes a new instance of the ProjectItemService class.
public ProjectItemService ( ProjectItem projectItem ) : System.Collections.Generic
projectItem ProjectItem The project item.
Résultat System.Collections.Generic

Remove() public méthode

Removes this instance.
public Remove ( ) : void
Résultat void

RemoveAndDelete() public méthode

Removes the and delete.
public RemoveAndDelete ( ) : void
Résultat void

RemoveComments() public méthode

Removes the comments.
public RemoveComments ( ) : void
Résultat void

RemoveDoubleBlankLines() public méthode

Removes the double blank lines.
public RemoveDoubleBlankLines ( ) : void
Résultat void

RemoveHeader() public méthode

Removes the header.
public RemoveHeader ( ) : void
Résultat void

ReplacePattern() public méthode

Replaces the pattern.
public ReplacePattern ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
Résultat void

ReplaceText() public méthode

Replaces the text.
public ReplaceText ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
Résultat void

Save() public méthode

Saves this instance.
public Save ( ) : void
Résultat void

SortAndRemoveUsingStatements() public méthode

Sorts the and remove using statements.
public SortAndRemoveUsingStatements ( ) : void
Résultat void