mx.controls
Class
VRule

class
VRule
extends mx.core.UIComponentThe VRule control creates a single vertical line. You typically use this control to create a dividing line within a container.
MXML Syntax
The <mx:VRule> tag inherits all the properties of its parent classes, and the following properties:
<mx:VRule
color="0xC4CCCC"
shadowColor="0xD4D0C8"
strokeWidth="2" />
Click here to view the
Examples
See Also
HRule
static | version:
String
Version string for this class. |
color |
Type:
Number
Format:
Color
CSS Inheritance:
yes
Color of the line according to the following rules: - If strokeWidth is 1, the color of the entire line.
- If strokeWidth is 2 (default), the color of the left line.
- If strokeWidth is greater than 2, the color of the top and left edges of the rectangle.
The default value is 0xC4CCCC. |
shadowColor |
Type:
Number
Format:
Color
CSS Inheritance:
yes
Shadow color of the line as follows: - If strokeWidth is 1, does nothing.
- If strokeWidth is 2 (default), the color of the right line.
- If strokeWidth is greater than 2, the color of the bottom and right edges of the rectangle.
The default value is 0xD4D0C8 (dark gray). |
strokeWidth |
Type:
Number
Format:
Length
CSS Inheritance:
yes
Thickness of the rule, in pixels, as follows: - If strokeWidth is 1, the rule is a 1-pixel-wide line.
- If strokeWidth is 2 (default), the rule is two adjacent 1-pixel-wide vertical lines.
- If strokeWidth is greater than 2, the rule is a hollow rectangle with 1-pixel-wide edges.
The default value is 2. |
version
static
version:
String
Version string for this class.
| SimpleVRule.mxml |
<?xml version="1.0"?>
<!-- Simple example to demonstrate the VRule control -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">
<mx:Panel title="Vertical Rule Panel" id="myPanel" marginTop="10">
<mx:Canvas>
<mx:VRule mouseOverEffect="WipeUp" x="125" color="#FF3366"/>
</mx:Canvas>
<mx:Label text="Move mouse over Horizontal Line to Redraw"/>
</mx:Panel>
</mx:Application>
|
Send me an e-mail when comments are added to this page
| Comment Report
Current page: http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/VRule.html