TCustomRichViewEdit.AdjustControlPlacement2

<< Click to display table of contents >>

TCustomRichViewEdit.AdjustControlPlacement2

Returns Control back to its position in the document. Control must be inserted in RichViewEdit directly or in table cell.

procedure AdjustControlPlacement2(Control: TControl);

(introduced in version 1.4)

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 Control has moved or resized itself. This method moves the control to the proper place in the document.

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

This method works only if the control is inserted in the root RichViewEdit or in cell inplace editor.

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

See also:

AdjustControlPlacement.