How to set layout group location in TileLayout?

We can customize the Layout Group location by using the MainLayout property in TileLayout.

The alignment of the Layout can be Near, Center, and Far as shown in the following code snippet.

//Gets or sets the MainLayout alignment

this.tileLayout1.MainLayout.Alignment = Syncfusion.Windows.Forms.Tools.FlowAlignment.Near;
Gets or sets the MainLayout alignment

Me.tileLayout1.MainLayout.Alignment = Syncfusion.Windows.Forms.Tools.FlowAlignment.Near

The starting location of the Layout group can be assigned by using the properties named HorzNearMargin, HorzFarMargin, TopMargin, BottomMargin. Following is the Code snippet which demonstrates the same.

//Gets or sets the left margin between client rectangle and layout rectangle
this.tileLayout1.MainLayout.HorzNearMargin = 100;

//Gets or sets the right margin between client rectangle and layout rectangle
this.tileLayout1.MainLayout.HorzFarMargin = 100;

//Gets or sets the Top margin between client rectangle and layout rectangle this.tileLayout1.MainLayout.TopMargin = 30;

//Gets or sets the Bottom margin between client rectangle and layout rectangle
this.tileLayout1.MainLayout.BottomMargin = 10;
Gets or sets the left margin between client rectangle and layout rectangle
Me.tileLayout1.MainLayout.HorzNearMargin = 100

Gets or sets the right margin between client rectangle and layout rectangle
Me.tileLayout1.MainLayout.HorzFarMargin = 100	

Gets or sets the Top margin between client rectangle and layout rectangle
Me.tileLayout1.MainLayout.TopMargin = 30

Gets or sets the Bottom margin between client rectangle and layout rectangle
Me.tileLayout1.MainLayout.BottomMargin = 10