Class Table
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
The Table is a container widget to arrange other widgets in a table where items can span multiple columns or rows. Inherits Container.
public class Table : Container, IAccessibleObject
- Inheritance
- Implements
Constructors
View SourceTable(EvasObject)
Creates and initializes a new instance of the Table class.
Declaration
public Table(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | A EvasObject to which the new Table instance will be attached. |
Properties
View SourceHomogeneous
Sets or gets whether the layout of this table is homogeneous.
Declaration
public bool Homogeneous { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
True for homogeneous, False for no homogeneous.
PaddingX
Sets or gets the horizontal padding between the cells.
Declaration
public int PaddingX { get; set; }
Property Value
Type | Description |
---|---|
int |
PaddingY
Sets or gets the vertical padding between the cells.
Declaration
public int PaddingY { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceClear()
Removes all the child objects from a table object.
Declaration
public void Clear()
CreateHandle(EvasObject)
Creates a widget handle.
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |
Overrides
View SourceGetPartColor(string)
Gets the color of a particular part of the table.
Declaration
public override Color GetPartColor(string part)
Parameters
Type | Name | Description |
---|---|---|
string | part | The name of part class, it could be 'bg', 'elm.swllow.content'. |
Returns
Type | Description |
---|---|
Color | The color of a particular part. |
Overrides
View SourcePack(EvasObject, int, int, int, int)
Adds a subobject on the table with the coordinates passed.
Declaration
public void Pack(EvasObject obj, int col, int row, int colspan, int rowspan)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | obj | The subobject to be added to the table. |
int | col | The column number. |
int | row | The row number. |
int | colspan | The column span. |
int | rowspan | The row span. |
SetPartColor(string, Color)
Sets the color for a particular part of the table.
Declaration
public override void SetPartColor(string part, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | part | The name of part class. |
Color | color | The color. |
Overrides
View SourceUnpack(EvasObject)
Removes the child from the table.
Declaration
public void Unpack(EvasObject obj)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | obj | The subobject. |