IVsContainedLanguageHost.EnsureSpanVisible(TextSpan) 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.
Ensures that span in the primary buffer is visible.
public:
int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary);
public:
int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary);
int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary);
public int EnsureSpanVisible (Microsoft.VisualStudio.TextManager.Interop.TextSpan tsPrimary);
abstract member EnsureSpanVisible : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> int
Public Function EnsureSpanVisible (tsPrimary As TextSpan) As Integer
Parameters
Returns
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT EnsureSpanVisible(
[in] TextSpan tsPrimary
);
If the contained language host is in a view that does not currently show the text span, the host must switch to the view where the span is visible. For example, if the HTML editor is in Design or Code view, the editor should switch to the HTML (source or markup) view.
This method is typically called by the contained language in response to a user double-clicking on an item in the Task List.