leftMargin

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

# Metadata

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

# Syntax

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

# Examples

set the leftMargin of field "Melting Point" to 10

set the leftMargin of last button to the leftMargin of first button

# Description

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

The leftMargin property of a field or button specifies how many blank pixels are left between the object left edge and the left edge of its text. The leftMargin of a group specifies how far the group left edge extends below its leftmost object.

An object's leftMargin property is equal to item 1 of its margins property.

# Tags

ui,

# See

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