ITabObjects.AdjustSelected

Syntax

AdjustSelected(Adjustment: TabObjectsAdjustment);

Parameters

The Adjustment is the parameter defining the method of adjusting size of selected objects.

Description

The AdjustSelected method adjusts the size of selected objects.

Example

Sub Macro;

Var

Rep: IPrxReport;

Objs: ITabObjects;

i: Integer;

Begin

Rep := PrxReport.ActiveReport;

Objs := Rep.ActiveSheet.Table.Objects;

For i := 0 To Objs.Count - 1 Do

Objs.Item(i).Select_;

End For;

Objs.AdjustSelected(TabObjectsAdjustment.MinHeight);

Objs.AdjustSelected(TabObjectsAdjustment.MinWidth);

End Sub Macro;

The example is a macro for a regular report. After executing the macro, all the objects of the active sheet of the regular report will be selected, their sizes will be adjusted first by minimum width, then by minimum height.

See also:

ITabObjects