VsTextViewClass.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:
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.