Home All Groups Group Topic Archive Search About

Collapse to Definitions and copy/paste

Author
24 Jan 2006 9:35 PM
mark
I have a very large class library and I need to provide documentation. I need
a list of all methods but I don't need the underlying code so the collapse to
definitions form is great. However, if I copy the code editors contents when
it is collapsed then paste it into MS Word it expands into full code.

Any thoughts?






--
mark b

Author
25 Jan 2006 11:15 AM
Carlos J. Quintero [VB MVP]
You can do that easily with a macro or add-in, iteraring the files as
explained in my article:

HOWTO: Navigate the files of a solution from a Visual Studio .NET macro or
add-in
http://www.mztools.com/articles/2006/MZ004.htm

and for each ProjectItem, you use ProjectItem.FileCodeModel.CodeElements and
iterate the code elements recursively.

There is already a built-in feature in my add-in (below) that can help you:
the Generate XML/HTML documentation feature. It works generating a XML file
with all the information of your code. Then you can use a XSLT file to
filter the content and render it as HTML.

If you need help with either approach let me know.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


Show quoteHide quote
"mark" <m***@discussions.microsoft.com> escribió en el mensaje
news:55390E8E-D804-46F0-B4B0-6D1ECD6D7803@microsoft.com...
>I have a very large class library and I need to provide documentation. I
>need
> a list of all methods but I don't need the underlying code so the collapse
> to
> definitions form is great. However, if I copy the code editors contents
> when
> it is collapsed then paste it into MS Word it expands into full code.
>
> Any thoughts?
>
>
>
>
>
>
> --
> mark b