IVsTextView.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 text is in view, both vertically and horizontally.
public:
int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public:
int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public int EnsureSpanVisible (Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
abstract member EnsureSpanVisible : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> int
Public Function EnsureSpanVisible (span As TextSpan) As Integer
Parameters
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextView::EnsureSpanVisible(
[in] TextSpan span
);
Use this method to display a span of text in the view.