rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.ResizeControl

Top  Previous  Next

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

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

 

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.


TRichView © trichview.com