Methods | Properties | Effects | Events | Styles | Examples Frames | No Frames

mx.controls
Class VRule

Inheritance ImageInheritance Image


class VRule
extends mx.core.UIComponent

The 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



Methods

Methods inherited from class mx.core.UIComponent
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

Methods inherited from class mx.core.UIObject
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



Properties
staticversion: String
Version string for this class.

Properties inherited from class mx.core.UIComponent
enabled   errorString   tabEnabled   tabIndex   version  

Properties inherited from class mx.core.UIObject
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



Effects

Effects inherited from class mx.core.UIComponent
focusInEffect   focusOutEffect  

Effects inherited from class mx.core.UIObject
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



Events

Events inherited from class: mx.core.UIComponent
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

Events inherited from class: mx.core.UIObject
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



Styles
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.

Styles inherited from class mx.core.UIComponent
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

Styles inherited from class mx.core.UIObject
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



Property Detail

version

static  version: String  

Version string for this class.


Examples
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