Class UniformGridPanel
A panel that evenly divides up available space between all of its children.
Implements
System.IComparable
    
  Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorToolbox("GUI")]
public class UniformGridPanel : ContainerControl, IComparable, IDrawableConstructors
UniformGridPanel()
UniformGridPanel(Single)
Initializes a new instance of the UniformGridPanel class.
Declaration
public UniformGridPanel(float slotPadding)Parameters
| System.Single
        slotPadding The slot padding. | 
Properties
SlotPadding
Gets or sets the padding given to each slot.
Declaration
[EditorOrder(0)]
[Tooltip("The padding margin applied to each item slot.")]
public Margin SlotPadding { get; set; }Property Value
| Margin 
 | 
SlotsHorizontally
Gets or sets the amount of slots horizontally. Use 0 to don't limit it.
Declaration
[EditorOrder(10)]
[Limit(0F, 100000F, 0.1F)]
[Tooltip("The amount of slots horizontally. Use 0 to don't limit it.")]
public int SlotsHorizontally { get; set; }Property Value
| System.Int32 
 | 
SlotSpacing
Gets or sets grid slot spacing.
Declaration
[EditorOrder(30)]
[Limit(0F, 3.40282347E+38F, 1F)]
[Tooltip("The Grid slot spacing.")]
public Float2 SlotSpacing { get; set; }Property Value
| Float2 
 | 
SlotsVertically
Gets or sets the amount of slots vertically. Use 0 to don't limit it.
Declaration
[EditorOrder(20)]
[Limit(0F, 100000F, 0.1F)]
[Tooltip("The amount of slots vertically. Use 0 to don't limit it.")]
public int SlotsVertically { get; set; }Property Value
| System.Int32 
 | 
Methods
PerformLayoutBeforeChildren()
Perform layout for that container control before performing it for child controls.
Declaration
protected override void PerformLayoutBeforeChildren()