The following code shows how to enable the auto-size feature for a CheckEdit within a LayoutControl, and center the CheckEdit within the corresponding layout item.
using DevExpress.XtraLayout;
checkEdit1.AutoSizeInLayoutControl = true;
layoutControlItem2.SizeConstraintsType = SizeConstraintsType.SupportHorzAlignment;
layoutControlItem2.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center;
Imports DevExpress.XtraLayout
checkEdit1.AutoSizeInLayoutControl = True
layoutControlItem2.SizeConstraintsType = SizeConstraintsType.SupportHorzAlignment
layoutControlItem2.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center