获取Richtextbox中的行对齐方式 [英] Get the alignment of line in Richtextbox

查看:128
本文介绍了获取Richtextbox中的行对齐方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!!



我正在使用C#进行项目,我需要一种技术来获取richtextbox控件中某行的对齐属性值



我不介意使用除richtextbox之外的其他文本编辑控件但是我需要有效的解决方案



所以请帮帮我或给我建议和谢谢。



例如:



Hi !!

I am working on a project using C# where I need a technique to get the alignment property value of certain line in a richtextbox control

I do not mind to use other text editing controls other than richtextbox but I need efficient solution

so please help me or give me the advise and thanks.

for example:

foreach (var Line in richTextBox1.Text)
{
    // I want to get the text alignment for each Line
}

推荐答案



如果这样的话要只是RichTextBox中的对齐方式,请参考此链接,

http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.selectionalignment.aspx [ ^ ]



希望它有所帮助。
Hi,
If this is going to be only the alignment in RichTextBox then refer this link,
http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.selectionalignment.aspx[^]

Hope it helps.


这篇关于获取Richtextbox中的行对齐方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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