The Automation Samples setup contains the following samples:
Add-in Wizard
This
application wizard is a near duplicate of the Add-in Wizard found in
the new project dialog under Other Projects and Extensibility Projects.
It adds projects to the solution, items to projects, and uses the Find
and text editor object models.
PrePostBuildRules
This
add-in provides pre and post build rules at the solution and project
level for projects implementing the common VS Automation model for
projects.
Command Browse Add-in
CmdBrowse is an add-in
that walks the command bar structure in the environment, displaying the
GUID/ID pair of each command, along with its named command. This
information is useful when working with the Office CommandBar object
model.
Command Help
This sample demonstrates how you
can implement help for your command so that when the user types your
command name into the command line window, information is displayed for
the available switches and arguments that can be passed to that command.
Code Window Context Menu
This sample add-in demonstrates how the user can add a custom command to the editor context menu
Command Types
This
sample shows the various CommandBar control types that can be added
when creating a Tools Menu option for the add-in. In addition it also
demonstrates how to use the Satellite dll to change the icons for the
Tools menus added for the commands
Editor Gadgets
This
sample shows how you can implement your own statement completion tool.
This Add-in will load the accompanying .xml file, and when you type a
specific keystroke sequence, that text is replaced with other text
supplied from the xml file.
EventWatcher
The
EventWatcher Add-in will connect to all the core shell event objects,
and as each event is fired, information is placed into the output
window.
File Nav
This sample shows how to walk the
Project tree and creates a dialog box that lists all the project items
for that project. Any item then can be selected and opened in the
editor.
Generate HTML
This sample demonstrates how to
take text from the editor window and build a HTML file using this text,
including font and color syntax highlighting information.
Keybindings Table
This
add-in puts a Keybindings command in the Help menu that is similar to
the Microsoft Visual C++ 6.0 Keyboard Map Help command.
Named Bookmarks
This
add-in lets you add named bookmarks that can be hierarchical organized,
with the ability to create folders to store bookmarks.
RegExplore
RegExplore
is an add-in that emulates the Registry Editor, but as a tool window
within the environment. Some of the object model functionality
demonstrated includes:
1) Add-In
2) ToolsOptions page
3) ToolsOptions Properties
4) Using a satellite dll for resources
5) Adding custom toolbox items.
ScriptHost
ScriptHost hosts the VBScript engine, and allows you to run VBS macros from VC6 in the Visual Studio 2005 IDE.
Solution Explorer Context Menu
This
sample add-in demonstrates how the user can add a custom command to the
solution explorer and how to dynamically enable and disable the command.
Solution Extender Add-in
This
sample demonstrates the use of Automation Extenders to "extend"
existing Visual Studio objects with new properties and methods. You can
extend property grid display objects as well as automation objects, so
that more methods and properties are available to the caller. This
sample extends both the Solution property grid display object as well
as the DTE.Solution automation object.
Thumbnails Add Item Wizard
This
wizard prompts for a directory of JPEG files, adds an HTML page to your
project, crunches all of the JPEGs down to thumbnails (by using .NET
image classes) and lays them out on the HTML page.
Tools Options Pages
This
sample shows how to create a custom options page that will be displayed
in the Tools | Options dialog and how to interact with that page. It
demonstrates the implementation of EnvDTE.IDTToolsOptionsPage interface.
ToolWindow Add-ins
This add-in demonstrates how to create ToolWindows for Visual Studio 2005
Unsupported Tools
This
archive contains unsupported tools to be used with the Visual Studio
object model. The following items are currently available:
ExtBrws.dll. Brings up a dialog box that displays all of the late-bound objects available under DTE, DTE.Events, or DTE.Properties.
Spell Check Macro
This is a macro project that does spell-checking using Word components and C# Windows Forms for the UI.
Windows Forms Automation
This
add-in demonstrates working with the object model provided by the
Windows Forms designer. The add-in will create a new Windows
Application project, and use the object model to build up a form.
Custom Wizard
This
wizard demonstrates all the context parameters passed into Add Item,
Add Project, and Add SubProject wizards. If you add custom parameters
to your wizard's .vsz files, the add-in will display those custom
parameters so that you can see how they are passed into the wizard.
Windows Scripting Host
The
wsh-vs.js sample demonstrates using Windows Scripting Host to launch
Visual Studio. It will create an instance of VS, and add a task item.
To use this sample, just double click on it from explorer, or type
wsh-vs.js at a Windows command prompt.
XSL Wizard
This
sample creates a wizard that lets you add a template in the Add New
Item/Local Project Items dialog to create xml and xsl files.
阅读(1996) | 评论(0) | 转发(0) |