如何在C#中将表单文本与右侧对齐? [英] How align text of form to the right side in C#?

查看:148
本文介绍了如何在C#中将表单文本与右侧对齐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Windows窗体应用程序。我想将文本对齐标题栏右侧。



我尝试过的方法:



我将RightToLeft属性设置为Yes,它在设计时工作但在运行时没有工作。我该怎么做?我不想将RightToleftLayout设置为True。

I am developing a Windows Form Application. I want to Align the Text to Right of Title Bar of Form.

What I have tried:

I set RightToLeft property to Yes, it worked in design time but didnt work in run time. How can I do it? I dont want to set RightToleftLayout to True.

推荐答案

设计器具有表单属性,我假设WinForms。有一个文本对齐属性,我很确定
The designer has properties for your form, I am assuming WinForms. There's a text align property, I'm pretty sure


这篇关于如何在C#中将表单文本与右侧对齐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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