Pakiet | mx.core |
Interfejs | public interface ILayoutDirectionElement |
Implementory | BitmapAsset, SpriteAsset |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.1 |
Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Powiązane elementy interfejsu API
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
layoutDirection : String
Specifies the desired layout direction for an element: one of LayoutDirection.LTR
(left to right), LayoutDirection.RTL (right to left), or null (inherit). | ILayoutDirectionElement |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
An element must call this method when its layoutDirection changes or
when its parent's layoutDirection changes. | ILayoutDirectionElement |
layoutDirection | właściwość |
layoutDirection:String
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.1 |
Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Specifies the desired layout direction for an element: one of LayoutDirection.LTR (left to right), LayoutDirection.RTL (right to left), or null (inherit). This property is typically backed by an inheriting style. If null, the layoutDirection style will be set to undefined. Classes like GraphicElement, which implement ILayoutDirectionElement but do not support styles, must additionally support a null value for this property which means the layoutDirection must be inherited from its parent.
Implementacja
public function get layoutDirection():String
public function set layoutDirection(value:String):void
Powiązane elementy interfejsu API
invalidateLayoutDirection | () | metoda |
public function invalidateLayoutDirection():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.1 |
Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
An element must call this method when its layoutDirection changes or when its parent's layoutDirection changes. If they differ, this method is responsible for mirroring the element’s contents and for updating the element’s post-layout transform so that descendants inherit a mirrored coordinate system. IVisualElements typically implement mirroring by using postLayoutTransformOffsets to scale the X axis by -1 and to translate the x coordinate of the origin by the element's width. The net effect of this "mirror" transform is to reverse the direction in which the X axis increases without changing the element's location relative to its parent's origin.
Tue Jun 12 2018, 12:06 PM Z