以编程方式对项目浏览器树形视图进行排序 [英] Sort project browser tree view programmatically

查看:68
本文介绍了以编程方式对项目浏览器树形视图进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何以编程方式设置EA项目浏览器中显示的元素顺序(以模仿绿色箭头)。

解决方案

树视图无法自由排序。 EA对排序施加了一些约束。因此,图,程序包和其他几个元素总是始终显示在顶部和组中。这是硬编码。



使用 Element.TreePos 在适当的位置更改顺序以模拟手动订单。 / p>

FWIW:功能有时会有另一种奇怪的行为。您可能需要在工具/选项中取消选中以下内容:




I need to know how to set the order of elements shown in EA's project browser programmatically (in order to mimic the green arrows).

解决方案

The tree view can not be sorted freely. EA puts a couple of constraints on the sorting. So diagrams, packages and a couple of other elements appear always on top and in groups. This is hard coded.

Use Element.TreePos to change the order where appropriate to simulate a manual order.

FWIW: Features have another queer behavior sometimes. You might need to uncheck the following in Tools/Options:

这篇关于以编程方式对项目浏览器树形视图进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆