VLViewPort Reference

Read/Write Property AutoFillContainer

See AlsoSee Also Applies To Applies To

Returns or sets the value that controls automatic resizing of VLViewPort as its container resizes.

 

Syntax

object.AutoFillContainer [= boolean]

 

The AutoFillContainer property syntax has these parts:

Part Description
Object An object expression that evaluates to VLVPort
Boolean A Boolean expression that specifies if the control should automatically resize and fill its container when the container resizes.

Setting

The settings for boolean are:

Setting Description
True (Default) Enables automatic resizing of control to fill up its container.
False Disables automatic resizing up of the container.

Remark

When AutoFillContainer is set to true, the control will automatically adjust its own size and fill up its container.

It will leave margins on all four sides as specified by properties LeftFillMargin, TopFillMargin, RightFillMargin and BottomFillMargin

AutoFillContainer along with the associated margin properties simplify use of VLViewPort control on containers like Frame or Tab controls which have smaller usable area than conveyed by the ScaleWidth and ScaleHeight properties.