TCustomRichViewEdit.ResizeControl

<< Click to display table of contents >>

TCustomRichViewEdit.ResizeControl

Resizes control in the ItemNo-th item, and quickly reformats the affected part of the document.

procedure ResizeControl(ItemNo, NewWidth, NewHeight: TRVCoord);

 

The ItemNo-th item must be of "inserted control" type (rvsComponent), otherwise the method raises ERichViewError exception.

The control's width will be set to NewWidth, height to NewHeight.

Method type: editstyle editing-style.

 

See also methods:

▪ResizeCurrentControl;

▪SetControlInfoEd;

▪AdjustControlPlacement;

▪GetItemStyle.

See also properties:

▪ItemCount.

See also:

▪Modifying RichView items;

▪Item types.