Compartir a través de


IVsTextView.EnsureSpanVisible(TextSpan) Method

Definition

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

span
TextSpan

[in] Specifies the span of text to center. For more information, see TextSpan.

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.

Applies to