Class StackView
Basic stackview container
Namespace: Unity.Industrial.Forma.StandardUI
Syntax
public class StackView : VisualElement
Constructors
StackView(Boolean)
Constructor
Declaration
public StackView(bool isVertical)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | isVertical | Is the stack vertical? |
Methods
AddChild(VisualElement)
Add an element to the stack.
Declaration
public void AddChild(VisualElement child)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | child | Element to add. |
SetInterElementSpace(Int32)
Set spacing between the elements within this stack. This OVERWRITES the left or top margin of the elements, except for the first in the stack.
Declaration
public void SetInterElementSpace(int space)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | space | Spacing in px |