Table of Contents

TTMSFNCTreeViewData.ScrollToVirtualNode Method

Scrolls a virtual node into view.

API unit family: TMSFNCTreeViewData Declaring type: TTMSFNCTreeViewData

Syntax

procedure ScrollToVirtualNode(ANode: TTMSFNCTreeViewVirtualNode; AScrollIfNotVisible: Boolean = False; AScrollPosition: TTMSFNCTreeViewNodeScrollPosition = tvnspTop; AForceScroll: Boolean = False); virtual;

Parameters

Name Description
ANode The virtual 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.