FMX.TreeView.TCustomTreeView.ViewportPositionChange

From RAD Studio API Documentation

Delphi

procedure ViewportPositionChange(const OldViewportPosition, NewViewportPosition: TPointF;  const ContentSizeChanged: Boolean); override;

C++

virtual void __fastcall ViewportPositionChange(const System::Types::TPointF &OldViewportPosition, const System::Types::TPointF &NewViewportPosition, const bool ContentSizeChanged);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.TreeView.pas
FMX.TreeView.hpp
FMX.TreeView TCustomTreeView

Description

Executed when the viewport position changes. {{#multireplace:FMX.TreeView.TCustomTreeView.ViewportPositionChange|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FMX.Layouts.TCustomScrollBox.ViewportPositionChange|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FMX.Layouts.TCustomScrollBox.ViewportPositionChange|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Executed when the viewport position changes.

ViewportPositionChange receives the following parameters:

  • OldViewportPosition is the value that the ViewportPosition property had before it changed.
  • NewViewportPosition is the new value of the ViewportPosition property.
  • ContentSizeChanged indicates whether the size of the content of the viewport has changed as well (True) or not (False).

ViewportPositionChange calls the handler of the OnViewportPositionChange event.