如何在富文本框中设置上边距? [英] how to set top margin in rich text box?

查看:879
本文介绍了如何在富文本框中设置上边距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发类似写字板的应用程序.我需要在富文本框中设置上边距.我想知道没有这样的保证金选择.我需要设置顶部富文本框中的页边距.我可以设置左右缩进.但坚持

I am developing wordpad similar application. I need to set top margin in the rich text box. I wondered there is no such option for margin. I need to set top  margin in the rich text box. I could able to set the indent left and right. But stuck with top and bottom margin.

推荐答案

我正在开发类似写字板的应用程序.我需要在富文本框中设置上边距.我想知道没有这样的保证金选择.我需要设置顶部富文本框中的页边距.我可以设置左右缩进.但是卡住了 顶部和底部的边距.
I am developing wordpad similar application. I need to set top margin in the rich text box. I wondered there is no such option for margin. I need to set top  margin in the rich text box. I could able to set the indent left and right. But stuck with top and bottom margin.

Windows.Forms RichTextBox中没有上边距.

There is no top margin in a Windows.Forms RichTextBox.

我已经读过人们将RichTextBox放置在Panel上的情况,其中Panels的背景色设置为RichTextBox的背景色.并将RichTextBox的边框样式设置为无".然后将RichTextBox的大小设置为看起来需要剩下的任何大小, 右,上和下边距.但是,我怀疑RichTextBox中显示的任何滚动条在视觉上看起来都不会很吸引人.

I've read where people place a RichTextBox onto a Panel with the Panels back color set to the RichTextBox's back color. And set the RichTextBox's border style to None. Then set the RichTextBox's size to whatever size it needs to be to appear to have left, right, top and bottom margins. However I suspect if any of the scrollbars display in the RichTextBox that it will not visually appear very attractive.

在必要时尝试设置分页以便将单独的页面用于特定的行数也可能很困难.

Trying to setup paging, if necessary so that separate pages are used for a specific number of lines, may be difficult also.


这篇关于如何在富文本框中设置上边距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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