IViewScroller::EnsureSpanVisible Method (SnapshotSpan, EnsureSpanVisibleOptions)
Visual Studio 2015
Ensures that all the text in the specified span is entirely visible in the view.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- span
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The span to make visible.
The view will not be scrolled if the text in span is completely visible. If the text in span is partially visible, then the view will be scrolled as little as possible to make the text completely visible. If none of the text in span was visible, then it will be centered in the view.
Show: