TCustomRichViewEdit.AdjustControlPlacement

<< Click to display table of contents >>

TCustomRichViewEdit.AdjustControlPlacement

Returns the control owned by the ItemNo-th item to its position in the document.

procedure AdjustControlPlacement(ItemNo: Integer);

Usually you do not need to use this method. RichViewEdit moves and scrolls inserted controls when it's needed.

If you want to resize control, use ResizeCurrentControl (or ResizeControl) method.

Use this method if the control has moved or resized itself. This method moves the control to the proper place in a document.

If the control has changed its size, this method also quickly reformats the affected part of the document.

It's recommended to use AdjustControlPlacement2 instead of this method, because it can work with controls inserted in table cells.

This method must be called only when the document is formatted.