duheng
2024-06-21 b2d4a55167e47bd7d42686670ae2555540b3de3e
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 ISupply.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;
        }
 
 
 
 
    }
}