Class Container

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

It inherits Widget. The Container is an abstract class. The other class inherits it to elementary, which is about displaying its widgets in a nice layout.

C#
Copy
public abstract class Container : Widget, IAccessibleObject
Inheritance
System.Object
Container
Derived
Implements

Constructors

View Source

Container()

Creates and initializes a new instance of the Container class.

Declaration
C#
Copy
protected Container()
API Level: preview
View Source

Container(EvasObject)

Creates and initializes a new instance of the class, which inherit from the Container.

Declaration
C#
Copy
protected Container(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

The parent is a given object, which will be attached by the Container as a child. It's EvasObject type.

API Level: preview

Properties

View Source

BackgroundColor

Sets the background color of a given Container.

Declaration
C#
Copy
public override Color BackgroundColor { set; }
Property Value
Type Description
Color
Overrides
API Level: preview
View Source

Children

Gets the collection of a child EvasObject of the Container.

Declaration
C#
Copy
protected IEnumerable<EvasObject> Children { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<EvasObject>
API Level: preview

Methods

View Source

AddChild(EvasObject)

Add the EvasObject object as a child of the Container.

Declaration
C#
Copy
protected void AddChild(EvasObject obj)
Parameters
Type Name Description
EvasObject obj

The EvasObject object to be added.

API Level: preview
View Source

ClearChildren()

Clears all the children of the Container.

Declaration
C#
Copy
protected void ClearChildren()
API Level: preview
View Source

RemoveChild(EvasObject)

Removes the EvasObject object as a child of the Container.

Declaration
C#
Copy
protected void RemoveChild(EvasObject obj)
Parameters
Type Name Description
EvasObject obj

The EvasObject object to be removed.

API Level: preview

Implements

Extension Methods