From Xojo Documentation

Revision as of 15:53, 11 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Integer )
aWebControl.VerticalCenter = newIntegerValue
IntegerValue = aWebControl.VerticalCenter

New in 2010r5

Supported for all project types and targets.

Specifies the vertical center of a control on a web page, which can be used to easily center a control on the page.


For example, to center a control vertically:

Button1.VerticalCenter = Self.Height / 2

(Self being a WebPage in this case.)