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#
Copy
public class Table : Container, IAccessibleObject
Inheritance
Implements

Constructors

View Source

Table(EvasObject)

Creates and initializes a new instance of the Table class.

Declaration
C#
Copy
public Table(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

A EvasObject to which the new Table instance will be attached.

API Level: preview

Properties

View Source

Homogeneous

Sets or gets whether the layout of this table is homogeneous.

Declaration
C#
Copy
public bool Homogeneous { get; set; }
Property Value
Type Description
Boolean
Remarks

True for homogeneous, False for no homogeneous.

API Level: preview
View Source

PaddingX

Sets or gets the horizontal padding between the cells.

Declaration
C#
Copy
public int PaddingX { get; set; }
Property Value
Type Description
Int32
API Level: preview
View Source

PaddingY

Sets or gets the vertical padding between the cells.

Declaration
C#
Copy
public int PaddingY { get; set; }
Property Value
Type Description
Int32
API Level: preview

Methods

View Source

Clear()

Removes all the child objects from a table object.

Declaration
C#
Copy
public void Clear()
API Level: preview
View Source

CreateHandle(EvasObject)

Creates a widget handle.

Declaration
C#
Copy
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

Parent EvasObject.

Returns
Type Description
System.IntPtr

Handle IntPtr.

Overrides
API Level: preview
View Source

GetPartColor(String)

Gets the color of a particular part of the table.

Declaration
C#
Copy
public 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#
Copy
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.

Int32 col

The column number.

Int32 row

The row number.

Int32 colspan

The column span.

Int32 rowspan

The row span.

API Level: preview
View Source

SetPartColor(String, Color)

Sets the color for a particular part of the table.

Declaration
C#
Copy
public 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
View Source

Unpack(EvasObject)

Removes the child from the table.

Declaration
C#
Copy
public void Unpack(EvasObject obj)
Parameters
Type Name Description
EvasObject obj

The subobject.

API Level: preview

Implements

Extension Methods