English 中文(简体)
尽可能减少/尽量扩大《守则》视觉网站(C#)
原标题:Minimize/ Maximize Code Visual Studios (C#)

Hey is there anyway that in your program you can add a minimize/ maximize icon on the side anywhere. (like Below). I want to be able to minimize and maximize certain sections if it is at all possible. Thanks for the help.

“entergraph

最佳回答

我相当确信,你能够(以违约的方式)瓦解任何带有布局的法典,但手头却无甚微。

For collapsing absolutely anything, you could use #region [name] and #endregion.

实际上,在的文件 您可以选择代码,正确点击,去排外并选择Hide 甄选。 这样做将产生与建立一个区域并与之相勾结相同的效果,但各区域除外(解释区域内的内容,这或许更便于你跟踪大组的守则。

问题回答

Use regions.

private void SomeCallback()
{
    #region This chunk of code does something.
    DoSomething();
    #endregion

    DoSomethingElse();
}

本区域本身将可相互比较(并一如既往地将采用<条码>SomeCallback()方法。

您可具体说明<代码>#region和#endregion指令在您的源文档中任何地方,但可确保将其置于其意义之下,而不过度使用。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签