Specifies all the patterns of an object, in shorthand form.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the patterns of object to patternsList
# Examples
set the patterns of button 1 to the patterns of card "Template" Example local storedPatternsList set the patterns of me to storedPatternsList
# Description
Use the patterns property to get all eight basic pattern properties at once, or to set the patterns of one object to be the same as the patterns of another object.
You can set all these patterns individually; the patterns property simply provides a shorter method of dealing with all of them at once. Each line of the patterns corresponds to one of the following pattern properties :
* Line 1: the foregroundPattern * Line 2: the backgroundPattern * Line 3: the hilitePattern * Line 4: the borderPattern * Line 5: the topPattern * Line 6: the bottomPattern * Line 7: the shadowPattern * Line 8: the focusPattern
If you leave a line blank when setting the patterns, the pattern property corresponding to that line is left unchanged.
If the patterns property of an object reports a blank line, the corresponding pattern is not set for the individual object, but is inheritance from the object owner. Use the form the effective patterns of object to obtain the patterns used for the object, whether set for the object or inheritance.
If a pattern is set for an object, that pattern is used instead of the corresponding color for that object.
# Tags
ui,
# See
- **keyword:** lines, image, line - **property:** foregroundPattern, backgroundPattern, hilitePattern, borderPattern, topPattern, bottomPattern, shadowPattern, focusPattern, colors, properties, owner, ID - **function:** stacks - **glossary:** object, property, current stack, inheritance