IWxStyle.AdjustMode

Syntax

AdjustMode: WxAdjustMode;

Description

The AdjustMode property determines size fitting mode for a shape frame based on the text that is inside the shape.

Fitting is not executed by default.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Shape: IWxShape;

Style: IWxStyle;

Begin

ws.BeginUpdate;

Shape := ws.Shapes.Item(1);

Style := Shape.Style;

Style.AdjustMode := WxAdjustMode.Height;

ws.EndUpdate;

End Sub UserProc;

After executing the example the height of the object frame is automatically fitted.

See also:

IWxStyle