带图像和文本的WinForms按钮 [英] WinForms button with image and text
本文介绍了带图像和文本的WinForms按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 WinForm
上有一个标准按钮,其中包含一些文本和图像。看起来像这样:
I have a standard button on my WinForm
with some text and an image. It looks like this:
如何设置按钮,使图像仅在文本的左侧对齐?我尝试了 ImageAlign
,但这似乎没有考虑按钮的文本。
How can I set the button so that the image is aligned just to the left of the text? I have tried ImageAlign
, but that doesn't seem to take into account the button's text.
推荐答案
刚刚找到它。
您需要设置:
ImageAlign
到 MiddleRight
TextImageRelation
到 ImageBeforeText
TextAlign
为 MiddleCenter
这篇关于带图像和文本的WinForms按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文