[c#] menuStrip,左右两侧的项目 [英] [c#] menuStrip, items on the left and right

查看:149
本文介绍了[c#] menuStrip,左右两侧的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表单上有一个menuStrip。在左侧我有文件,编辑,查看,...,但我想在同一menuStrip上添加项目语言,但在右侧。



类似于:



文件编辑查看____________________空位______________________语言



这可能吗?

I have a menuStrip on my form. On the left side i have File, Edit, View,..., but i would like to add item Language on the same menuStrip but on the right side.

Something like:

File Edit View ____________________empty space_____________________ Language

Is this possible?

推荐答案

这样......



注意:如果是Winform

在menustrip中选择项目并设置

alignment = right



快乐编码!

:)
This way...

Note : if it's Winform
select item in menustrip and set
alignment = right

Happy Coding!
:)


是的,您可以使用对齐属性 [ ^ ]。
Yes you can align item to the left or the right using the Alignment property[^].


这篇关于[c#] menuStrip,左右两侧的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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