VLViewPort Reference

Read/Write Property TopFillMargin

See AlsoSee Also Applies To Applies To

Returns or sets the margin maintained by the control at the top when AutoFillContainer is set to True.

 

Syntax

object.TopFillMargin [= long]

 

The TopFillMargin property syntax has these parts:

Part Description
Object An object expression that evaluates to VLVPort
Long A long expression that specifies margin that is maintained between the bottom edge of the container and the bottom edge of the ViewPort control when AutoFillContainer is set to True.

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.