FMX.Layouts.TGridPanelLayout.TControlItem.RowSpan

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RowSpan: TCellSpan read FRowSpan write SetRowSpan default 1;

C++

__property TGridPanelLayout::TCellSpan RowSpan = {read=FRowSpan, write=SetRowSpan, default=1};

Properties

Type Visibility Source Unit Parent
property published
FMX.Layouts.pas
FMX.Layouts.hpp
FMX.Layouts TControlItem

Description

Specifies the maximum number of cells that the control item in the respective row can span on.

The Row, Column, and RowSpan are properties of a TControlItem control item. The value of RowSpan specifies the maximum number of cells in the Row row that can be occupied by the TControlItem control item located by the Row and Column properties.

To specify that a control item, which has the Row and Column location in the grid panel layout, can span on several cells in the Row row, you can use the following trick:

  • In the Structure view, locate the desired TGridPanelLayout layout node.
  • Under this node, locate the Control Collection node.
  • Among control items in this Control Collection, select the control item associated with the desired control. The Object Inspector shows the properties of this control item.
  • In the RowSpan property, type the number of cells that the control item can span on in the row (specified by the Row property).
The control item having the Row and Column location will span on the specified number of cells in the Row row.

Use ColumnSpan to set the maximum number of cells a control item can span on in a column.

See Also