LanguageService.CreateDocumentProperties Method (CodeWindowManager)

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public virtual DocumentProperties CreateDocumentProperties(
	CodeWindowManager mgr


Type: Microsoft.VisualStudio.Package.CodeWindowManager

[in] A CodeWindowManager object that the document properties can refer to.

Return Value

Type: Microsoft.VisualStudio.Package.DocumentProperties

If successful, returns a T:Microsoft.Office.Core.DocumentProperties object; otherwise, returns a null value.

The base method always returns a null value (that is, the base implementation does not support extra document properties). If you wish to support additional properties for source files that contain your language, you must create a class derived from T:Microsoft.Office.Core.DocumentProperties and return an instance of your class.

This method is called from the CodeWindowManager constructor so a new T:Microsoft.Office.Core.DocumentProperties object is associated with each code window.

Return to top