HRule组件
所属包: mx.controls
用途:绘制一条水平直线。
属性:
Characteristic | Description |
---|---|
Default size | The default width is 100 pixels, default height is 2 pixels. By default, the HRule control is not resizable; set width and height to percentage values to enable resizing. |
strokeWidth | 2 pixels. |
strokeColor | 0xC4CCCC. |
shadowColor | 0xEEEEEE. |
例子:
<?xml version="1.0"?> <!-- Simple example to demonstrate the HRule control. --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <!-- WipeLeft属于mx:effects --> <mx:WipeLeft id="myWL"/> <mx:Panel title="HRule Control Example" id="myPanel" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"> <mx:HRule rollOverEffect="{myWL}" width="100%" strokeWidth="1" strokeColor="red"/> <mx:Label width="100%" color="blue" text="Move mouse over HorizontalRule control to redraw it."/> </mx:Panel> </mx:Application>