VB 为 RichTextBox 设置段落缩进,设置段落对应的文档格式为RTF格式文件,设置后可保存文件。
以下代码为设置段落缩进,在一个单独的窗体文件中执行:
Private Sub Command1_Click() '设置段落缩进
Form1.RichTextBox1.SelHangingIndent = Val(Text1.Text) '首行悬挂缩进
Form1.RichTextBox1.SelIndent = Val(Text2.Text) '左缩进
Form1.RichTextBox1.SelRightIndent = Val(Text
相关下载链接:
//download.csdn.net/download/weixin_39840588/11318675?utm_source=bbsseo