如何将'CanOverflow'的标志设置为MemuStrip中的项目 [英] How to set flag of 'CanOverflow' to Items in MemuStrip

查看:66
本文介绍了如何将'CanOverflow'的标志设置为MemuStrip中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windor表单应用程序,程序中有MenuStrip对象和ToolStrip对象,

我发现ToolStrip对象中有''CanOverflow''属性,但是,没有这种MenuStrip中的标志。



我的条件如下:

1. MenuStip中有项目,每个项目都有DropDownItems,MenuStrip之一Item(比如ItemA)有一个很长的DropDownItems,因此当显示ItemA的DropDownItems时,DrwpDownItems将被设置为比ItemA本身更高的位置。



我的问题如下:

是否有任何类似''CanOverflow''的设置,以便ItemA中的一些DropDownItem可以隐藏在溢出表中,或者任何方式达到这个要求?



感谢您的全力支持。

I have a Windor form application, there are MenuStrip object and ToolStrip object in program,
I found there is ''CanOverflow'' property in ToolStrip object, but, there is no this kind of flag in MenuStrip.

My condition is below :
1. There are Items in MenuStip, and each Item has DropDownItems, one of MenuStrip Item (say ItemA) has a long DropDownItems, so that when display DropDownItems of ItemA, the DrwpDownItems will be too long to be set higher location than ItemA itself.

My question is below :
Is there any such kind of ''CanOverflow'' propery to be set, so that some of DropDownItems in ItemA can be ''hidden in overflow table'', or any way to reach this request ?

Thanks of your fully support.

推荐答案

至少从v开始框架的.2.0: http://msdn.microsoft.com/en-us/library/system.windows.forms.menustrip.canoverflow.aspx [ ^ ]。



-SA
It is there at least since v.2.0 of the Framework: http://msdn.microsoft.com/en-us/library/system.windows.forms.menustrip.canoverflow.aspx[^].

—SA


这篇关于如何将'CanOverflow'的标志设置为MemuStrip中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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