lixiaojun
2024-11-17 c390474980cea47189c1fcc962315b9867c9e2ce
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
namespace Yw.WinFrmUI
{
    /// <summary>
    /// SearchLookUpEdit
    /// </summary>
    public static class SearchLookUpEditExtensions
    {
        /// <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;
        }
 
 
 
 
    }
}