LanguageService::IsMappedLocation Method (IVsTextBuffer^, Int32, Int32)

 

Called to determine if the specified location in the given source file references code in another file.

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

public:
virtual int IsMappedLocation(
	IVsTextBuffer^ buffer,
	int line,
	int col
)

Parameters

buffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^

[in] The IVsTextBuffer containing the source file.

line
Type: System::Int32

[in] The line in the buffer to locate.

col
Type: System::Int32

[in] The offset into the line to locate.

Return Value

Type: System::Int32

If the position in the source file is mapped to another file, return S_OK; otherwise, returns S_FALSE.

An example of source being mapped from another file is a code-behind file where the position in an HTML file references the code-behind file.

The base method always returns S_FALSE.

Return to top
Show: