reckfellENGINE

MarginContainer

Padding around a shared content rectangle.

On this page
class MarginContainerReckfellSharpInherits Container

Padding comes from margin_left, margin_top, margin_right and margin_bottom theme constants, for example through AddThemeConstantOverride. It contributes to minimum size and reduces the content area. Separate from the MarginContainer’s own anchors/offsets.

Several direct children receive the same inner area and can overlap. For sequential layout add one VBoxContainer or HBoxContainer and put content inside it.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

MarginContainerConstructor
# MarginContainer
C#
public MarginContainer();

Creates an area padded by theme margin_left/top/right/bottom constants. Put one BoxContainer inside for sequential content.

Theme properties

These are Theme resource keys, not C# properties. Use the matching Control GetTheme…() and AddTheme…Override() methods for each value type.

Key and typeDescription
margin_bottom
int

Offsets towards the inside direct children of the container by this amount of pixels from the bottom.

Default: 0
margin_left
int

Offsets towards the inside direct children of the container by this amount of pixels from the left.

Default: 0
margin_right
int

Offsets towards the inside direct children of the container by this amount of pixels from the right.

Default: 0
margin_top
int

Offsets towards the inside direct children of the container by this amount of pixels from the top.

Default: 0
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.