alphaTab.platform.IContainer
This interface represents a container control in the UI layer.
interface IContainerPropertiesโ
heightโ
Gets or sets the height of the control.
- JavaScript
- C#
- Kotlin
height: number;double Height { get; set; }var height: DoubleisVisibleโ
Gets a value indicating whether the control is visible.
- JavaScript
- C#
- Kotlin
readonly isVisible: boolean;bool IsVisible { get; }val isVisible: BooleanmouseDownโ
This event occurs when a mouse/finger press happened on the control.
- JavaScript
- C#
- Kotlin
mouseDown: IEventEmitterOfT<IMouseEventArgs>;IEventEmitterOfT<IMouseEventArgs> MouseDown { get; set; }var mouseDown: IEventEmitterOfT<IMouseEventArgs>mouseMoveโ
This event occurs when a mouse/finger moves on top of the control. While a press started on this control is active, moves are reported even if they happen outside the control.
- JavaScript
- C#
- Kotlin
mouseMove: IEventEmitterOfT<IMouseEventArgs>;IEventEmitterOfT<IMouseEventArgs> MouseMove { get; set; }var mouseMove: IEventEmitterOfT<IMouseEventArgs>mouseUpโ
This event occurs when a mouse/finger is released from the control. Every press started on this control ends with exactly one mouseUp, also when the release happens outside the control or the gesture is cancelled by the system.
- JavaScript
- C#
- Kotlin
mouseUp: IEventEmitterOfT<IMouseEventArgs>;IEventEmitterOfT<IMouseEventArgs> MouseUp { get; set; }var mouseUp: IEventEmitterOfT<IMouseEventArgs>resizeโ
This event occurs when the control was resized.
- JavaScript
- C#
- Kotlin
scrollLeftโ
Gets or sets the horizontal scroll offset of this control if it is scrollable.
- JavaScript
- C#
- Kotlin
scrollLeft: number;double ScrollLeft { get; set; }var scrollLeft: DoublescrollTopโ
Gets or sets the vertical scroll offset of this control if it is scrollable.
- JavaScript
- C#
- Kotlin
scrollTop: number;double ScrollTop { get; set; }var scrollTop: Doublewidthโ
Gets or sets the width of the control.
- JavaScript
- C#
- Kotlin
width: number;double Width { get; set; }var width: DoubleMethodsโ
appendChildโ
Adds the given child control to this container.
- JavaScript
- C#
- Kotlin
appendChild(child: IContainer): voidvoid AppendChild(IContainer child)fun appendChild(child: IContainer): Unit| Parameter | Summary |
|---|---|
childAll | The child control to add. |
clearโ
Clears the container and removes all child items.
- JavaScript
- C#
- Kotlin
clear(): voidvoid Clear()fun clear(): UnitsetBoundsโ
Sets the position and size of the container for efficient repositioning.
- JavaScript
- C#
- Kotlin
setBounds(x: number, y: number, w: number, h: number): voidvoid SetBounds(double x, double y, double w, double h)fun setBounds(x: Double, y: Double, w: Double, h: Double): Unit| Parameter | Summary |
|---|---|
xAll | The X-position |
yAll | The Y-position |
wAll | The width |
hAll | The height |
stopAnimationโ
Stops the animations of this control immediately.
- JavaScript
- C#
- Kotlin
stopAnimation(): voidvoid StopAnimation()fun stopAnimation(): UnittransitionToXโ
Tells the control to move to the given X-position in the given time.
- JavaScript
- C#
- Kotlin
transitionToX(duration: number, x: number): voidvoid TransitionToX(double duration, double x)fun transitionToX(duration: Double, x: Double): Unit| Parameter | Summary |
|---|---|
durationAll | The milliseconds that should be needed to reach the new X-position |
xAll | The new X-position |