Skip to main content

alphaTab.platform.IContainer

Description

This interface represents a container control in the UI layer.

 interface IContainer

Properties

height

Gets or sets the height of the control.

isVisible

Gets a value indicating whether the control is visible.

mouseDown

This event occurs when a mouse/finger press happened on the control.

mouseMove

This event occurs when a mouse/finger moves on top of the control.

mouseUp

This event occurs when a mouse/finger is released from the control.

resize

This event occurs when the control was resized.

scrollLeft

Gets or sets the horizontal scroll offset of this control if it is scrollable.

scrollTop

Gets or sets the vertical scroll offset of this control if it is scrollable.

width

Gets or sets the width of the control.

Methods

appendChild(IContainer)

Adds the given child control to this container.

clear()

Clears the container and removes all child items.

setBounds(number, number, number, number)

Sets the position and size of the container for efficient repositioning.

stopAnimation()

Stops the animations of this control immediately.

transitionToX(number, number)

Tells the control to move to the given X-position in the given time.