<< Click to display table of contents >> TSRichViewEdit.ScrollToCaret, ScrollCaretToCenter |
The methods scroll to make the caret visible.
function ScrollToCaret(SmoothScroll: Boolean = False): Boolean;
function ScrollCaretToCenter(SmoothScroll: Boolean = False): Boolean;
ScrollToCaret does nothing if the caret is already completely visible. ScrollCaretToCenter always scrolls.
ScrollToCaret scrolls to show the top of the caret in the middle of the editor. ScrollCaretToCenter scrolls to show the middle of the caret in the middle of the editor.
If SmoothScroll = True, a smooth scrolling effect is applied.
See also