LanguageService.CreateDocumentProperties(CodeWindowManager) Method
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.
Instantiates a Microsoft.Office.Core.DocumentProperties class.
public:
virtual Microsoft::VisualStudio::Package::DocumentProperties ^ CreateDocumentProperties(Microsoft::VisualStudio::Package::CodeWindowManager ^ mgr);
public virtual Microsoft.VisualStudio.Package.DocumentProperties CreateDocumentProperties (Microsoft.VisualStudio.Package.CodeWindowManager mgr);
abstract member CreateDocumentProperties : Microsoft.VisualStudio.Package.CodeWindowManager -> Microsoft.VisualStudio.Package.DocumentProperties
override this.CreateDocumentProperties : Microsoft.VisualStudio.Package.CodeWindowManager -> Microsoft.VisualStudio.Package.DocumentProperties
Public Overridable Function CreateDocumentProperties (mgr As CodeWindowManager) As DocumentProperties
Parameters
[in] A CodeWindowManager object that the document properties can refer to.
Returns
If successful, returns a Microsoft.Office.Core.DocumentProperties object; otherwise, returns a null value.
Remarks
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 Microsoft.Office.Core.DocumentProperties and return an instance of your class.
This method is called from the CodeWindowManager constructor so a new Microsoft.Office.Core.DocumentProperties object is associated with each code window.