可以使用 TreeListLookUpEdit 控件的 NodeIndentStyle 属性来调整图片与文字之间的空白。
在 NodeIndentStyle 属性中,可以选择以下几种选项:
如果想要去除图片和文字之间的空白,可以将 NodeIndentStyle 属性设置为 None。以下是示例代码:
treeListLookUpEdit1.Properties.TreeList.NodeIndentStyle = DevExpress.XtraTreeList.NodeIndentStyle.None;
或者可以通过将 NodeIndent属性设置为0来达到同样的效果:
treeListLookUpEdit1.Properties.TreeList.NodeIndent = 0;
请注意,这可能会导致节点在展开时重叠。如果出现此问题,请考虑使用其他选项调整间距,以获得更好的视觉效果。