duheng
2024-12-27 1c3e5bc50d3045d51cb9a9f747d53442b82d9e2c
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/00-core/LayViewEx.cs
@@ -15,7 +15,7 @@
            layoutView1.Appearance.FieldEditingValue.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            layoutView1.Appearance.FieldValue.Options.UseTextOptions = true;
            layoutView1.Appearance.FieldValue.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            layoutView1.OptionsBehavior.ScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
            layoutView1.OptionsCustomization.AllowFilter = false;
            layoutView1.OptionsCustomization.AllowSort = false;
@@ -31,6 +31,18 @@
            layoutView1.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiColumn;
            layoutView1.OptionsView.ContentAlignment = ContentAlignment.MiddleCenter;
            layoutView1.OptionsView.AllowHotTrackFields = false; 
        }
        public static void SetFindPanel(this LayoutView layoutView1)
        {
            layoutView1.ShowFindPanel();
            layoutView1.OptionsFind.ShowCloseButton = false;
            layoutView1.OptionsFind.ShowFindButton = false;
            layoutView1.OptionsFind.FindNullPrompt = "搜索";
        }
    }