共用方式為


LanguageService.GetCodeWindowManagerForSource(Source) Method

Definition

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.

Applies to