borderWidth

Specifies the width of an object border.

# Metadata

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

# Syntax

set the borderWidth of object to pixelWidth

# Params

- pixelWidth : An integer between zero and 255.

# Examples

set the borderWidth of button "Cancel" to 1

set the borderWidth of this card to 24

set the borderWidth of line 5 of field 1 to 10

# Description

Use the borderWidth property to change the appearance of an object border.

By default, the borderWidth of newly created objects is 2. By default, the borderWidth of a paragraph of text in a field is 0.

If the object's showBorder property is false, the borderWidth property has no effect.

The border's appearance and color is affected by the setting of the object's threeD property.

# Tags

ui,

# See

- **property:** borderPattern - **glossary:** object, property