다음을 통해 공유


VsTextViewClass.EnsureSpanVisible(TextSpan) Method

Definition

Ensures that text is in view, both vertically and horizontally.

public:
 virtual int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::EnsureSpanVisible;
public:
 virtual int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public:
 virtual int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::EnsureSpanVisible;
 virtual int EnsureSpanVisible(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public virtual int EnsureSpanVisible (Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
abstract member EnsureSpanVisible : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> int
override this.EnsureSpanVisible : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> int
Public Overridable Function EnsureSpanVisible (span As TextSpan) As Integer

Parameters

span
TextSpan

[in] Specifies the span of text to center.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to