Interface IScrollEventRouter
Defines a contract for handling scroll-related actions in a control, including horizontal and vertical scrolling by characters, lines, pages, or specific positions.
public interface IScrollEventRouter
Remarks
This interface provides methods to programmatically control scrolling behavior in a user interface component. It supports fine-grained scrolling actions, such as scrolling by individual characters or lines, as well as larger movements, such as scrolling by pages or jumping to specific positions. Implementations of this interface are expected to handle these actions appropriately based on the control's content and layout.
Methods
- CalcScrollBarInfo(out ScrollBarInfo, out ScrollBarInfo)
Calculates and retrieves information about the horizontal and vertical scroll bars.
- DoActionScrollCharLeft()
Scrolls the control horizontally by one char to the left.
- DoActionScrollCharRight()
Scrolls the control horizontally by one char to the right.
- DoActionScrollLineDown()
Scrolls the control down by one line.
- DoActionScrollLineUp()
Scrolls the control up by one line.
- DoActionScrollPageDown()
Scrolls the control down by one page.
- DoActionScrollPageLeft()
Scrolls the control horizontally by one page to the left.
- DoActionScrollPageRight()
Scrolls the control horizontally by one page to the right.
- DoActionScrollPageUp()
Scrolls the control up by one page.
- DoActionScrollToFirstChar()
Scrolls the control horizontally to the first char.
- DoActionScrollToFirstLine()
Scrolls to the first line in the control.
- DoActionScrollToHorzPos(int)
Sets horizontal scroll offset.
- DoActionScrollToLastLine()
Scrolls to the last line in the control.
- DoActionScrollToVertPos(int)
Sets vertical scroll offset.