一、項目運行中不顯示右鍵菜單
layoutControl1.AllowCustomization = false
二、控件超出容器后不顯示滾動條
layoutControl1.AtuoScroll = false
三、在layoutControlItem前面顯示圖片


1. layoutControlItem1.TextVisible = true
2. layoutControlItem1.Text = " "
3. 設置layoutControlItem1下ImageOptions.Alignment=MiddleCenter,並選擇ImageIndex或選擇其它圖片
四、動態創建Devpress LayoutControl控件的使用例子。通過代碼動態添加 LayoutControlItem ,TabbedControlGroup ,LayoutControlGroup 及具體控件並排版的例子。
LayoutControlItem lci = layoutControlGroup1.AddItem(); //lci.Size = new System.Drawing.Size(800, 20); //控件大小 //lci.Move(layoutControlGroup1.Items[layoutControlGroup1.Items.Count - 1], InsertType.Bottom); //控件位置 好像沒起作用 SimpleButton sb = new SimpleButton(); lci.Control = sb; layoutControlGroup1.Add(lci); lci.TextVisible = false;
Devexpress中LayoutControl控件動態生成控件
DevExpress.XtraLayout.LayoutControl 動態添加控件
