Shuxia Ning
2024-07-17 fd681339c81201ed6fb3303647ecab89e3e6c0c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using DevExpress.Utils;
using DevExpress.XtraEditors;
 
namespace IStation.Win
{
    /// <summary>
    /// SearchLookUpEdit
    /// </summary>
    public static class SearchLookUpEditExtend
    {
        /// <summary>
        /// 设置默认
        /// </summary> 
        public static void SetDefaultView(this SearchLookUpEdit rhs, int height = 250)
        {
            rhs.Properties.AllowFocused = false;
            rhs.Properties.NullText = "";
            rhs.Properties.ShowClearButton = false;
            var width = rhs.Size.Width - 105;
            rhs.Properties.PopupFormSize = new Size(width, height);
            rhs.Properties.Appearance.TextOptions.HAlignment = HorzAlignment.Center;
        }
 
 
 
 
    }
}