IViewElementFactoryService Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A service for converting from data objects to their platform specific UI representation.
public interface class IViewElementFactoryService
public interface IViewElementFactoryService
type IViewElementFactoryService = interface
Public Interface IViewElementFactoryService
Examples
[Import]
internal IViewElementFactoryService viewElementFactoryService;
Remarks
This is a MEF service that can be obtained via the ImportAttribute in a MEF exported class.
The editor supports ClassifiedTextElements, ContainerElement, ImageElements, and Object on all platforms. Text and image elements are converted to colorized text and images respectively and other objects are displayed as the String returned by ToString() unless an extender exports a IViewElementFactory for that type.
On Windows only, ITextBuffer, ITextView, and UIElement are also directly supported.
Methods
CreateViewElement<TView>(ITextView, Object) |
Converts |