Class Table
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
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. |
API Level: preview
Properties
Declaration
C#Copypublic bool Homogeneous { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
True for homogeneous, False for no homogeneous.
API Level: preview
Declaration
C#Copypublic int PaddingX { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic int PaddingY { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Methods
Declaration
C#Copypublic void Clear()
API Level: preview
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |
Overrides
API Level: preview
Declaration
C#Copypublic override Color GetPartColor(string part)
Parameters
Type | Name | Description |
---|---|---|
System.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
API Level: preview
View Source
Pack(EvasObject, Int32, Int32, Int32, Int32)
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. |
System.Int32 | col | The column number. |
System.Int32 | row | The row number. |
System.Int32 | colspan | The column span. |
System.Int32 | rowspan | The row span. |
API Level: preview
Declaration
C#Copypublic override void SetPartColor(string part, Color color)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The name of part class. |
Color | color | The color. |
Overrides
API Level: preview
Declaration
C#Copypublic void Unpack(EvasObject obj)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | obj | The subobject. |