本文介绍了关于ToolStripMenuItem文本的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ToolStripMenuItem.DisplayStyle = Text
ToolStripMenuItem.Text = "test1";
ToolStripMenuItem.TextAlign = "MiddleLeft";



当我设置ToolStripMenuItem的相关属性时,字符串test1没有停在左边,左边有一个空白区域,我怎么能让字符串停靠在左边,我想要位置或任何。


When the relevant attributes as I set ToolStripMenuItem, the string "test1" did not stop at the left, and the left there is a blank area, how can I let the string docked on the left side, I want to position or any.

推荐答案

this.menuStrip1.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);


这篇关于关于ToolStripMenuItem文本的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 13:57