Table of Contents

TTMSFNCTreeViewData.ScrollToNode Method

Scrolls a node into view.

API unit family: TMSFNCTreeViewData Declaring type: TTMSFNCTreeViewData

Syntax

procedure ScrollToNode(ANode: TTMSFNCTreeViewNode; AScrollIfNotVisible: Boolean = False; AScrollPosition: TTMSFNCTreeViewNodeScrollPosition = tvnspTop; AForceScroll: Boolean = False); virtual;

Parameters

Name Description
ANode The node to scroll to.
AScrollIfNotVisible True scrolls only when the node is outside the visible area; False always applies the requested scroll behavior.
AScrollPosition The desired node position in the viewport.
AForceScroll True forces scrolling even when normal checks would skip it; False uses normal scroll checks.