Class TableView
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
TableView is a layout container for aligning child actors in a grid like layout.
TableView constraints the X and the Y position and the width and the height of the child actors.
The Z position and depth are left intact so that the 3D model actors can also be laid out
in a grid without loosing their depth scaling.
C#Copypublic class TableView : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
Tizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementTableView
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic TableView()
Declaration
C#Copypublic TableView(uint initialRows, uint initialColumns)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | initialRows | Initial rows for the table. |
System.UInt32 | initialColumns | Initial columns for the table. |
API Level: 3
TableView(TableView)
The Copy constructor. Creates another handle that points to the same real object.
Declaration
C#Copypublic TableView(TableView handle)
Parameters
Type | Name | Description |
---|---|---|
TableView | handle | Handle to copy from. |
API Level: 3
Properties
Declaration
C#Copypublic Vector2 CellPadding { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
API Level: 3
Declaration
C#Copypublic int Columns { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic PropertyMap LayoutColumns { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
Declaration
C#Copypublic PropertyMap LayoutRows { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
Declaration
C#Copypublic int Rows { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Methods
AddChild(View, TableView.CellPosition)
Adds a child to the table.
If the row or column index is outside the table, the table gets resized bigger.
Declaration
C#Copypublic bool AddChild(View child, TableView.CellPosition position)
Parameters
Type | Name | Description |
---|---|---|
View | child | The child to add. |
TableView.CellPosition | position | The position for the child. |
Returns
Type | Description |
---|---|
Boolean | True if the addition succeeded, and false if the cell is already occupied. |
API Level: 3
DeleteColumn(UInt32)
Deletes a column from the given index.
Removed elements are deleted.
Declaration
C#Copypublic void DeleteColumn(uint columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The columnIndex of the column to delete. |
API Level: 3
Declaration
C#Copypublic void DeleteRow(uint rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The rowIndex of the row to delete. |
API Level: 3
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | The dispose type |
Overrides
API Level: 3
Declaration
C#Copypublic bool FindChildPosition(View child, TableView.CellPosition position)
Parameters
Type | Name | Description |
---|---|---|
View | child | The child to search for. |
TableView.CellPosition | position | The position for the child. |
Returns
Type | Description |
---|---|
Boolean | True if the child was included in this TableView. |
API Level: 3
Declaration
C#Copypublic Vector2 GetCellPadding()
Returns
Type | Description |
---|---|
Vector2 | The current padding as width and height. |
API Level: 3
Declaration
C#Copypublic View GetChildAt(TableView.CellPosition position)
Parameters
Type | Name | Description |
---|---|---|
TableView.CellPosition | position | The position in the table. |
Returns
Type | Description |
---|---|
View | Child that was in the cell or an uninitialized handle. |
API Level: 3
Declaration
C#Copypublic float GetFixedHeight(uint rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The row index with a fixed height. |
Returns
Type | Description |
---|---|
Single | height The height in world coordinate units. |
API Level: 3
Declaration
C#Copypublic float GetFixedWidth(uint columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The column index with a fixed width. |
Returns
Type | Description |
---|---|
Single | Width in world coordinate units. |
API Level: 3
Declaration
C#Copypublic float GetRelativeHeight(uint rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The row index with a relative height. |
Returns
Type | Description |
---|---|
Single | Height in percentage units, between 0.0f and 1.0f. |
API Level: 3
Declaration
C#Copypublic float GetRelativeWidth(uint columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The column index with a relative width. |
Returns
Type | Description |
---|---|
Single | Width in percentage units, between 0.0f and 1.0f. |
API Level: 3
Declaration
C#Copypublic void InsertColumn(uint columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The columnIndex of the new column. |
API Level: 3
Declaration
C#Copypublic void InsertRow(uint rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The rowIndex of the new row. |
API Level: 3
Declaration
C#Copypublic bool IsFitHeight(uint rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The row to check. |
Returns
Type | Description |
---|---|
Boolean | True if the row is fit. |
API Level: 3
Declaration
C#Copypublic bool IsFitWidth(uint columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The column to check. |
Returns
Type | Description |
---|---|
Boolean | True if the column is fit. |
API Level: 3
Declaration
C#Copypublic View RemoveChildAt(TableView.CellPosition position)
Parameters
Type | Name | Description |
---|---|---|
TableView.CellPosition | position | The position for the child to remove. |
Returns
Type | Description |
---|---|
View | Child that was removed or an uninitialized handle. |
API Level: 3
Declaration
C#Copypublic void Resize(uint rows, uint columns)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rows | The rows for the table. |
System.UInt32 | columns | The columns for the table. |
API Level: 3
SetCellAlignment(TableView.CellPosition, HorizontalAlignmentType, VerticalAlignmentType)
Sets the alignment on a cell.
Cells without calling this function have the default values of left and top respectively.
Declaration
C#Copypublic void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
Parameters
Type | Name | Description |
---|---|---|
TableView.CellPosition | position | The cell to set alignment on. |
HorizontalAlignmentType | horizontal | The horizontal alignment. |
VerticalAlignmentType | vertical | The vertical alignment. |
API Level: 3
Declaration
C#Copypublic void SetCellPadding(Size2D padding)
Parameters
Type | Name | Description |
---|---|---|
Size2D | padding | Width and height. |
API Level: 3
Declaration
C#Copypublic void SetFitHeight(uint rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The row to set. |
API Level: 3
Declaration
C#Copypublic void SetFitWidth(uint columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The column to set. |
API Level: 3
SetFixedHeight(UInt32, Single)
Sets a row to have a fixed height.
Setting a fixed height of 0 has no effect.
Declaration
C#Copypublic void SetFixedHeight(uint rowIndex, float height)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The rowIndex for row with a fixed height. |
Single | height | The height in world coordinate units. |
API Level: 3
SetFixedWidth(UInt32, Single)
Sets a column to have a fixed width.
Setting a fixed width of 0 has no effect.
Declaration
C#Copypublic void SetFixedWidth(uint columnIndex, float width)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The columnIndex for column with a fixed width. |
Single | width | The width in world coordinate units. |
API Level: 3
SetRelativeHeight(UInt32, Single)
Sets a row to have a relative height. Relative height means percentage of
the remainder of the table height after subtracting padding and fixed height rows.
Setting a relative height of 0 has no effect.
Declaration
C#Copypublic void SetRelativeHeight(uint rowIndex, float heightPercentage)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | rowIndex | The rowIndex for row with a relative height. |
Single | heightPercentage | The height percentage between 0.0f and 1.0f. |
API Level: 3
SetRelativeWidth(UInt32, Single)
Sets a column to have a relative width. Relative width means percentage of
the remainder of the table width after subtracting padding and fixed width columns.
Setting a relative width of 0 has no effect.
Declaration
C#Copypublic void SetRelativeWidth(uint columnIndex, float widthPercentage)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | columnIndex | The columnIndex for column with a fixed width. |
Single | widthPercentage | The widthPercentage between 0.0f and 1.0f. |