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.
C#Copypublic class Table : Container, IAccessibleObject
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic Table(EvasObject parent)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | parent | A EvasObject to which the new Table instance will be attached. |
Properties
Declaration
C#Copypublic bool Homogeneous { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
True for homogeneous, False for no homogeneous.
Declaration
C#Copypublic int PaddingX { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Declaration
C#Copypublic int PaddingY { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Declaration
C#Copypublic void Clear()
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | parent | Parent EvasObject. |
Returns
| Type | Description |
|---|---|
| System.IntPtr | Handle IntPtr. |
Overrides
Declaration
C#Copypublic 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 Source
Pack(EvasObject, int, int, int, int)
Adds a subobject on the table with the coordinates passed.
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic override void SetPartColor(string part, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| string | part | The name of part class. |
| Color | color | The color. |
Overrides
Declaration
C#Copypublic void Unpack(EvasObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | obj | The subobject. |