使用vb.n在VSTO中我的任务面板的客户宽度 [英] Custome width of my taskpanel in VSTO using vb.n
问题描述
大家好,
我在Vb.net中使用VSTO在Excel中创建了一个带有任务面板的新项目。
在show taskpanel位置设置任务面板的宽度时遇到问题:
Hi everybody,
I had create a new project with a taskpanel in Excel using VSTO in Vb.net.
I had a problem when set the width of taskpanel when show taskpanel position:
.DockPosition = Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionLeft
or
.DockPosition = Microsoft.Office.Core.MsoCTPDockPosition.mmsoCTPDockPositionRight.
我想设置taskpanel width< 50但似乎我无法设置我的任务面板宽度<默认最小任务面板宽度(~50)。
我认为必须有办法解决这个问题吗?
如果我们有办法通过代码或配置更改宽度,请告诉我们吗?
谢谢
我的尝试:
如何设置My CustomTaskPane宽度< VSTO中使用VB.net的最小默认任务窗口宽度
I want to set taskpanel width < 50 but seem i can't set my taskpanel width < default minimum taskpanel width (~50).
I think there must be some way to solve this?
Can you please let me know if we there is a way to change the width through code or configuration?
Thanks
What I have tried:
How to set My CustomTaskPane width < Minimum of Default Taskpane width in VSTO using VB.net
推荐答案
检查: CustomTaskPane.Width属性(Microsoft.Office.Tools) [ ^ ]
Check this: CustomTaskPane.Width Property (Microsoft.Office.Tools)[^]
最小宽度取决于几个因素,并且可以在将来的Microsoft Office版本中更改。如果您尝试将Width属性设置为小于最小宽度的值,应用程序将自动将Width属性重新指定为最小宽度。
The minimum width depends on several factors, and can change in future releases of Microsoft Office. If you try to set the Width property to a value that is less than the minimum width, the application will automatically reassign the Width property to the minimum width.
这篇关于使用vb.n在VSTO中我的任务面板的客户宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!