tangxu
2024-04-24 1c5fa983ae3506c2edaa88c51a959d46685c1ba1
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
29
using DevExpress.Utils;
using DevExpress.XtraEditors;
using System.Drawing;
 
namespace IStation.WinFrmUI
{
    /// <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;
        }
 
 
 
 
    }
}