Export (0) Print
Expand All

Figures Edit Sample

Visual Studio 2005
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This sample demonstrates a custom editor factory that uses the standard Visual Studio text buffer and provides two synchronized document view objects of the document data object in the text buffer. One view is the standard text editor view and the other is a custom, line-oriented designer view.

Security noteSecurity Note

This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices.  Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.

Build Sample

To build this sample

Run Sample

Robust Programming

The custom view is an HWND-based list-view control, sited in the IDE with IVsWindowPane. It uses the Properties window for editing.

The Toolbox is used as a palette for items that can be dragged onto this editor.

In addition, the Figures Edit sample:

  • Implements a project-specific editor. It is integrally linked to Figures Project Sample.

  • Demonstrates the interaction of a language service and the core editor.

  • Demonstrates the typical interaction of two document view objects and one document data object. The two kinds of document view objects are text view and form view.

  • Uses a language service to interact with the core text buffer (document data object) and creates additional objects as needed for colorizing and statement completion.

Security noteSecurity Note

This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft