首页  编辑  

DevExpress TreeList 查找面板高度调整

Tags: /C#/   Date Created:
How to adjust the blank space of the DevExpress TreeList Find Panel , resize the find panel?
Devexpress TreeList 控件查找面板,如何调整高度和空白?
System.Reflection.PropertyInfo field = typeof(TreeList).GetProperty("FindPanel", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
if (field != null)
{
	DevExpress.Utils.FindPanel finder = (FindPanel)field.GetValue(treeListControl);
	finder.Padding = new System.Windows.Forms.Padding(0);
	finder.Height = 25;
	finder.AutoSize = true;
}