LanguageService.GetCodeWindowManagerForSource(Source) 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.
Returns the CodeWindowManager object associated with the specified Source object.
public:
Microsoft::VisualStudio::Package::CodeWindowManager ^ GetCodeWindowManagerForSource(Microsoft::VisualStudio::Package::Source ^ src);
public Microsoft.VisualStudio.Package.CodeWindowManager GetCodeWindowManagerForSource (Microsoft.VisualStudio.Package.Source src);
member this.GetCodeWindowManagerForSource : Microsoft.VisualStudio.Package.Source -> Microsoft.VisualStudio.Package.CodeWindowManager
Public Function GetCodeWindowManagerForSource (src As Source) As CodeWindowManager
Parameters
- src
- Source
[in] The Source object for which to get the associated CodeWindowManager object.
Returns
If successful, returns a CodeWindowManager object; otherwise, returns a null value indicating the specified source is not associated with a particular CodeWindowManager object managed by this language service.
Remarks
Each Source is associated with an instance of a CodeWindowManager since each Source object contains information specific to what is presented in a particular code view. This method searches an internal list for a CodeWindowManager that contains a matching Source object and returns the found CodeWindowManager object.
This method is not called by the default language service but you can call it if you need to obtain a CodeWindowManager object for a particular Source object. The default language service maintains the internal list for you.