如何修复下拉项目的宽度? [英] How to fix the width of the dropdown items?

查看:60
本文介绍了如何修复下拉项目的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

excel插件的功能区下拉控件:

动态插入项目时,下拉宽度增加以适合整个项目内容。我只想显示20个字符,剩下的字符不应该被截断,它应该存在但不应该显示。



例如:

如果项目是:1234567890abcdefghijklmnopqrstuvwxyz。

i想要只显示20个字符:1234567890abcdefghij

但其他字符应该隐藏。

i只想修复下拉项目的宽度。



有人可以帮助我吗?

The ribbon dropdown control for excel addin:
when items are inserted dynamically, the dropdown width increases to fit the whole item contents. I just want to display only 20 characters and remaining characters should not be truncated, it should be present but should not be shown.

eg:
if item is : 1234567890abcdefghijklmnopqrstuvwxyz.
i want to display only 20 char: 1234567890abcdefghij
but the rest of the characters should be hidden.
i just want to fix the width of the dropdown items.

Can anybody help me out in tis ?

推荐答案

可能这些链接对您有用...

http://stackoverflow.com/questions/4842160/auto-width-of-comboboxs-content [ ^ ]



http://stackoverflow.com/questions/3905696/setting-dropdown-list-width-of -datagridview-comboboxcolumn-winforms [ ^ ]
may be these link will be useful for you...
http://stackoverflow.com/questions/4842160/auto-width-of-comboboxs-content[^]

http://stackoverflow.com/questions/3905696/setting-dropdown-list-width-of-datagridview-comboboxcolumn-winforms[^]


这篇关于如何修复下拉项目的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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