Figures Edit Sample
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 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
-
For further information on how to build this sample, see Figures Project Sample.
Run Sample
To run this sample
-
For further information on how to run this sample, see Figures Project Sample.
The following table lists the interfaces that are implemented by the sample.
| Implemented Interfaces |
|---|
The following table lists the interfaces that are called by the sample and their associated services.
| Called Interfaces | Associated Services |
|---|---|
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 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. |
Security Note