Base class for box containers.
    public abstract 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 [constant ALIGN_BEGIN], [constant ALIGN_CENTER] or [constant 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.

    [Obsolete("GetAlignment is deprecated. Use the Alignment property instead.")]
    public AlignMode GetAlignment()

Getter for Alignment

    [Obsolete("SetAlignment is deprecated. Use the Alignment property instead.")]
    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: