LanguageService::GetCodeWindowManagerForSource Method (Source^)

 

Returns the CodeWindowManager object associated with the specified Source object.

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

public:
CodeWindowManager^ GetCodeWindowManagerForSource(
	Source^ src
)

Parameters

src
Type: Microsoft.VisualStudio.Package::Source^

[in] The Source object for which to get the associated CodeWindowManager object.

Return Value

Type: Microsoft.VisualStudio.Package::CodeWindowManager^

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.

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.

Return to top
Show: