Packagecom.addicted2flash.layout.util
Classpublic class Margin
InheritanceMargin Inheritance Space

This class represents the margin of an object.



Public Properties
 PropertyDefined by
 Inheritedbottom : Number
Space
 Inheritedhorizontal : int
Returns the sum of left and right space.
Space
 Inheritedleft : Number
Space
 Inheritedright : Number
Space
 Inheritedtop : Number
Space
 Inheritedvertical : int
Returns the sum of top and bottom space.
Space
Public Methods
 MethodDefined by
  
Margin(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)
Creates a new Margin.
Margin
  
toString():String
Returns the string representation of Margin.
Margin
Constructor detail
Margin()constructor
public function Margin(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)

Creates a new Margin.

Parameters
top:Number (default = 0) — space to the top
 
right:Number (default = 0) — space to the right
 
bottom:Number (default = 0) — space to the bottom
 
left:Number (default = 0) — space to the left
Method detail
toString()method
public override function toString():String

Returns the string representation of Margin.

Returns
String — the string representation of Margin