C# Class NicoVermeir.XamlStyler_Package.StylerPackage

Inheritance: Microsoft.VisualStudio.Shell.Package
Afficher le fichier Open project: NicoVermeir/XamlStyler

Méthodes publiques

Méthode Description
StylerPackage ( ) : System

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.

Méthodes protégées

Méthode Description
Initialize ( ) : void

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initilaization code that rely on services provided by VisualStudio.

Private Methods

Méthode Description
Execute ( Document document ) : void
IsFormatableDocument ( Document document ) : bool
MenuItemCallback ( object sender, EventArgs e ) : void

This function is the callback used to execute a command when the a menu item is clicked. See the Initialize method to see how the menu item is associated to this function using the OleMenuCommandService service and the MenuCommand class.

OnFileSaveAllBeforeExecute ( string guid, int id, object customIn, object customOut, bool &cancelDefault ) : void
OnFileSaveSelectedItemsBeforeExecute ( string guid, int id, object customIn, object customOut, bool &cancelDefault ) : void
ShowMessageBox ( string title, string message ) : void

Method Details

Initialize() protected méthode

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initilaization code that rely on services provided by VisualStudio.
protected Initialize ( ) : void
Résultat void

StylerPackage() public méthode

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.
public StylerPackage ( ) : System
Résultat System