## object = DFrameStyle, BarStyle, MenuStyle and ButtonStyle

## object: setHCentered

## object: setVCentered

## object: setCentered

object.setHCentered / setVCentered: Indicate that the object will be horizontally / vertically centered on its parent.

object.setCentered: Apply property to the hCentered and vCentered values.

### Syntaxes

object.setHCentered(flag)

object.setVCentered(flag)

object.seCentered(flag)

Example

var dFrameStyle = new DFrameStyle()

dFrameStyle.HCentered(true)

var dFrame = new DFrame(null, title, dFrameStyle)

if strictly equivalent to

var dFrame = new DFrame(([10, 10, '*', 90], title, dFrameStyle)

### Parameters

flag

If true the object is centered

See position in Reference documentation for more information.