SMART datagrid v.1 > Reporting > Classes > PrintItem

Back  Forward

DLReport.PrintItem.top  property

The margin between the top of the item and the top of Cell Area in which contained items. 

It can be specified as a string which contains numbers or "in", "mm", "cm" "px" units. If do not specify the unit, it will be considered as pixel. And, it can also be specified as "%", which is the percentage value to the height of the assigned area. 

If specify both bottom and top, it means to specify both the height and location of the item, and if specify only top or bottom, it means to specify the vertical alignment of the item. If do not specify either top or bottom, it will use the calculated size or explicitly specified height to align in the vertical center of the area. For example, if neither top nor bottom of Label Item which is directly contained in Report Header is specified, it will be placed in the vertical center of Report Header. 

left, right, top, bottom do not affect to determine the size of Group Item or Band including the item. 

Defaults to undefined.

Getter
function top(): PrintDimension
Setter
function setTop(value: Number|String)
See Also
bottom
left
right
Print Items Layout
Print Dimension
PrintGroupItem
PrintItemBand
Examples
Hello Report
Canvas Tutorial