Provides the base requirements for an object that can scroll an IEditor
Properties
IsHorizontalScrollBarVisible
Gets whether the horizontal scrollbar is visible.
Property Value
- bool:
true
if the horizontal scrollbar is visible; otherwise,false
.
IsHorizontalScrollingEnabled
Gets whether horizontal scrolling is enabled.
Property Value
- bool:
true
if horizontal scrolling is enabled; otherwise,false
.
IsVerticalScrollBarVisible
Gets whether the vertical scrollbar is visible.
Property Value
- bool:
true
if the vertical scrollbar is visible; otherwise,false
.
Remarks
Use Opacity
so that arrange isn't affected.
IsVerticalScrollingEnabled
Gets whether vertical scrolling is enabled.
Property Value
- bool:
true
if vertical scrolling is enabled; otherwise,false
.
Methods
ScrollByPixels(double, double)
Scrolls the view by the specified number of pixels.
Parameter | Type | Description |
---|---|---|
xPixelDelta | double | The number of X-coordinate pixels (can be negative) by which to scroll. |
yPixelDelta | double | The number of Y-coordinate pixels (can be negative) by which to scroll. |
ScrollDown()
Scrolls down a line while keeping the caret visible (for single caret only).
ScrollDown(bool)
Scrolls down a line.
Parameter | Type | Description |
---|---|---|
keepCaretVisible | bool | When |
ScrollHorizontallyByPixels(double)
Scrolls the view horizontally by the specified number of pixels.
Parameter | Type | Description |
---|---|---|
pixelDelta | double | The number of pixels (can be negative) by which to scroll. |
ScrollIntoView(TextPosition, bool)
Ensures that the specified Text
Parameter | Type | Description |
---|---|---|
position | Text |
The Text |
scrollToVerticalMiddle | bool | Whether to scroll to the vertical middle, if scrolling is necessary. |
ScrollLeft()
Scrolls left a column.
ScrollLineToVisibleBottom()
Scrolls the current view line to the bottom of the view.
ScrollLineToVisibleMiddle()
Scrolls the current view line to the middle of the view.
ScrollLineToVisibleTop()
Scrolls the current view line to the top of the view.
ScrollPageDown()
Scrolls down a page.
ScrollPageUp()
Scrolls up a page.
ScrollRight()
Scrolls right a column.
ScrollTo(TextViewScrollState)
Scrolls the view to the specified scroll state.
Parameter | Type | Description |
---|---|---|
scrollState | Text |
The target Text |
ScrollToCaret()
Scrolls the view to the primary caret position.
ScrollToDocumentEnd()
Scrolls to the end of the document.
ScrollToDocumentStart()
Scrolls to the start of the document.
ScrollUp()
Scrolls up a line while keeping the caret visible (for single caret only).
ScrollUp(bool)
Scrolls up a line.
Parameter | Type | Description |
---|---|---|
keepCaretVisible | bool | When |
ScrollVerticallyByLine(int)
Scrolls the view vertically by the specified number of lines.
Parameter | Type | Description |
---|---|---|
lineDelta | int | The number of view lines (can be negative) by which to scroll. |
ScrollVerticallyByPixels(double)
Scrolls the view vertically by the specified number of pixels.
Parameter | Type | Description |
---|---|---|
pixelDelta | double | The number of pixels (can be negative) by which to scroll. |