![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Every component instance has style properties and setStyle()
and getStyle()
(see UIObject.setStyle()
and UIObject.getStyle()
) methods that you can use to modify and access style properties. You can use styles to customize a component in the following ways:
You can change color and text properties of a single component instance. This is effective in some situations, but it can be time consuming if you need to set individual properties on all the components in a document.
If you want to apply a consistent look to an entire document, you can create styles on the _global style declaration.
You may also want to have groups of components in a document share a style. To do this, you can create custom style declarations to apply to specific components.
You can also define a default class style declaration so that every instance of a class shares a default appearance.
Changes made to style properties are not displayed when viewing components on the Stage using the Live Preview feature. For more information, see Components in Live Preview.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |