Base class for box containers.
    public class BoxContainer : Container

Arranges child controls vertically or horizontally, and rearranges the controls automatically when their minimum size changes.

Inheritance Chain

Derived Classes

Properties

    public AlignMode Alignment { get; set; }

The alignment of the container’s children (must be one of ALIGN_BEGIN, ALIGN_CENTER, or ALIGN_END).

Methods

    public void AddSpacer(bool begin)

Adds a control to the box as a spacer. If true, begin will insert the spacer control in front of other children.

    public AlignMode GetAlignment()

Getter for Alignment

    public void SetAlignment(AlignMode alignment)

Setter for Alignment

Inner Types

AlignMode

Name Value Description
Begin 0 Aligns children with the beginning of the container.
Center 1 Aligns children with the center of the container.
End 2 Aligns children with the end of the container.
Tags: