我想要调用TextControl.Selection.IncreaseIndent()来实现首行缩进两格, 但是调用这个方法会导致很多行缩进, 而且缩进的很多. 查看帮助文档只有简单的一句描述:
Increases the left indent of all paragraphs contained in the current text selection. If no text is selected, this method increases the left indent at the text input position. left indent positions are defined through the paragraphs' tab positions and the indents of the paragraphs in front and behind the paragraph with the text input position.
我看了一下这个tab position是定义在TextControl.ParagraphFormat.TabPositions,但是这个是一个长度为14的数组.
请问我要把TabPositions的值改成什么? 才能实现我一段选中的文字里面的第一行缩进两格.
这个长度为14的数组里面的每个值都代表什么意思? 文档里面没有任何详细的说明, 也找不到相关的demo程序.
|
|