AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
As3 setting defaults for text fields11/24/2023 The result of the cascade, or the sum of the styles that is applied to the element, is stored in the element's computedFormat property. For example, if the transparency ( textAlpha property) of the text is undefined on a SpanElement object, but is set on the TextFlow, the value of the TextFlow.textAlpha property cascades to the SpanElement object and is applied to the text for that span. When a style is undefined on an element at the point it is about to be rendered, it either takes its default value or the value cascades or descends from the value on a parent element. So if the ligature level is set for a TextFlow instance and also set for a DivElement, the DivElement setting takes precedence.Ĭascading styles refers to the process of adopting styles from a higher level in the text flow if a style value is undefined at a lower level. The general rule is that the setting at the lowest level on the text flow tree takes precedence. For example, the color of the text at the TextFlow level could be set to black while a SpanElement object sets it to blue. In addition to the format property, these classes also define each of the individual TextLayoutFormat properties so that you can override the setting of a particular style property for that element, if you wish.īecause you can set a given style at multiple levels, it is possible to have conflicts. Assign a TextLayoutFormat object to a FlowElement descendant to specify formatting for that particular element: TextFlow, ParagraphElement, DivElement, SpanElement, InlineGraphicElement, LinkElement, and TCYElement. Assign a TextLayoutFormat object to a container to affect the format of all of the container's content. Both the ContainerController class and the FlowElement base class have format properties that enable you to assign a TextLayoutFormat instance to them. These properties affect the format and style of a text flow at the container level, paragraph level, and text level. The TextLayoutFormat class holds all of the text layout properties.
0 Comments
Read More
Leave a Reply. |