topMargin

Specifies how close text within an object can come to the object upper edge, and how close objects in a group can come to the group upper edge.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the topMargin of {button | field | group} to pixels

# Examples

set the topMargin of button "OK" to 10

# Description

Use the topMargin property to change the amount of blank space between an object top edge and its contents.

The topMargin property of a field specifies how many blank pixels are left between the object top edge and its contents. The topMargin of a group specifies how far the group top edge extends below its uppermost object.

An object's topMargin property is equal to item 2 of its margins property.

# Tags

ui,

# See

- **keyword:** default, item, integer, field, button - **property:** pixels, wideMargins, margins - **command:** group - **object:** field - **glossary:** object, property, non-negative, group