开发者

Does Visual Studio 2008 have something like Delphi's structure view?

开发者 https://www.devze.com 2022-12-13 18:12 出处:网络
I use Delphi 2007 in my daily work and have now start to look at VS2008 and C#. One confusing thing compared to Delphi is the design editor in VS.

I use Delphi 2007 in my daily work and have now start to look at VS2008 and C#. One confusing thing compared to Delphi is the design editor in VS.

Here is the Form Designer in Delphi

Layout hierarchy in Delphi http://pp.kpnet.fi/bengtsson/temp/delphi.png

As you see on the left I have a hierarchy of components. Some of them like TPanel and TGroupbox can contain other components. It is very easy to change a parent just by dragging and dropping in the tree view.

Compare this with VS that has a flat structure. How can I reorga开发者_如何学Pythonnize the layout of components in VS? Is it something I have missed?

Regards


In this case there is no difference between Delphi and C#. Even in C# you can embed controls in a groupbox or a panel. I don't think Visual Studio has the same Structure panel that Delphi has but that same hierarchy exists when you create that form.

EDIT: It's called "Document Outline" and you can find it under the menu View -> Other Windows -> Document Outline. Or press CTRL + Alt + T while in design mode.


Are you looking for something like the Source Code Outliner PowerToy??

alt text http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SourceCodeOutliner&DownloadId=3493

Or if you're a CodeRush user and have the DXCore installed in your Visual Studio, you could also check out DX_SourceOutliner instead.


There's 3rd-party support, as google told me: http://www.telerik.com/products/winforms/tools.aspx. Which probably means that VS doesn't support this out of the box ;-) Not sure if it allows to move between parents, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消